NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
/*
// 4 Nisan 2019

//if yapısı
// a değeri true(doğru) false (yanlış) olduğunda nasıl işlem yapar.
$a =true;
if($a){
echo "doğru"; }
else{ echo "hatalı"; }
*/


// Birden çok seçenekli if yazımı

/*
$renk = "Mavi";
// Get metodu tanımlanmış mı bakıyoruz. Sonra renk ataması yapıyoruz.

if(isset ($_GET["renk"])){
$renk = $_GET["renk"];
}

if($renk == "Mavi"){
echo "Seçtiğin renk mavi";
} elseif($renk == "Kırmızı"){
echo "Seçtiğin renk Kırmızı";
} elseif($renk == "Beyaz"){
echo "Seçtiğin renk beyaz";
} else {
"bunların hiç biri değil";
}
*/
/*

$sayi1 = 20;
$sayi2 = 0;

if(isset($_GET["sayi"])){
$sayi2 = $_GET["sayi"];
}
echo "sonuç:". $sayi1*$sayi2;
*/
/*
$yas= 20;
if(isset($_GET["yasim"])){
$yas = $_GET ["yasim"];

}

// yaş kontrolü yapıyoruz

switch($yas){
case 20:// 20 mi ?
case 21:// 21 mi ?
case 22:// 22 mi ?
case 23:// 23 mi ?
case 24:// 24 mi ?
case 25:// 25 mi ?
echo "Daha gençsin"; // ekrana yaz
break; // blocktan çık
case 45:
echo "yaşlanıyorsun";
break;
case 10:
echo"daha çocuksun";
break;
case 80:
echo"dede oluyorsun";
break;
default: // hiçbiri değilse bunu yap
echo "sana bir şey diyemiyorum :(";

}


if(isset($_GET["yasim"])){
$yas = $_GET ["yasim"];

}
if($yas == 20 || $yas ==21 || $yas==22 || $yas == 23 ) {
echo "daha gençsin";
} elseif($yas == 80) {
echo "yaşlanmışsın";
} elseif ($yas== 10){
echo "daha çocuksun";
} elseif($yas<45 && $yas >23) // if te aralık verilir switch te verilemez
{
echo "ömrün uzun olsun :)";
}
else{
echo "sana bir şey diyemiyorum :(";
}



$yil = date("Y");



if(isset($_GET["dyil"])){
$dyil= $_GET["dyil"];
}
else {$dyil= 0;}
if($dyil == 0){
echo"doğum yılını yazman lazım";
} else { $yasim= $yil- $dyil ;
echo "sen $yasim yaşındasın<br>
";
$yas=$yasim;
if($yas == 20 || $yas ==21 || $yas==22 || $yas == 23 ) {
echo "daha gençsin";
} elseif($yas> 0 && $yas <2) {
echo "bebek";
} elseif ($yas>= 2 && $yas < 12){
echo "çocuk";
} elseif($yas>=12 && $yas <24) // if te aralık verilir switch te verilemez
{
echo "genç";
} elseif ($yas>=24 && $yas < 40){
echo "yetişkin";
} elseif ($yas>=40){
echo "yaşlı"; }
else{
echo "sana bir şey diyemiyorum :(";
}

}
*/

// mod switch eşliğinde saniyede değişen yazılar
if(isset($_GET["adi"])){
$adi= $_GET["adi"];
} else {$adi= "";
}
if(isset($_GET["soyadi"])){
$soyadi= $_GET["soyadi"];
} else {
$soyadi= "";
}
$s = 1*date("s");
$mod= $s%5;

switch($mod){
case 0:
echo "Günaydın $adi $soyadi";
break;

case 1:
echo "Tünaydın $adi $soyadi";
break;

case 2:
echo "Hoşgeldin $adi $soyadi";
break;

case 3:
echo "Hayırlı Cumalar $adi $soyadi";
break;

case 4:
echo "Ooo kimleri görüyorum $adi $soyadi";
break;
}





































?>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.