"; echo $c; echo "
"; echo $d; $ad = "İsmail"; $soyad = "ÖZTÜRK"; // 1. yol echo $ad; echo " "; echo $soyad; echo "
: Notes">

NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
/**/
$a = 5;
$b = 20;
$c = $a*$b;

$d = "Selam<br>

<ul>
<li>Liste </li>
<li>Liste </li>
<li>Liste </li>
</ul>

";

echo $c;
echo "<hr>";
echo $d;



$ad = "İsmail";

$soyad = "ÖZTÜRK";

// 1. yol
echo $ad;
echo " ";
echo $soyad;

echo "<br>";
// 2. yol
echo "$ad $soyad";

echo "<br>";
// 3. Yol

echo $ad . " " . $soyad;
echo "<br>";
$a = 30;
echo $ad." " . $a."'dadır";
echo "<br>";

$x = 3.14;
echo $x;



$a = 5;
$b = 20;

echo $a."<br>";
$a = 30;
echo "<br> $a <br>";
echo $a++."<br>";
echo $a."<br>";


$hesapla = $a*$b ;
$hesapla --;
echo $hesapla;

// toplama:
$toplam = $a+$b;

// çıkarma:
$cikarma = $a-$b;

// Bölme;
$bolme = $a/$b;

// çarpma:
$carpma = $a*$b;


// değişken tanımlama ve yazma şekli


$degisken_adi = "Değişken";


// sabit değişken:
echo "<br>";

$ip = "10.10.100.5";
define("IP_ADRESI",$ip);
echo IP_ADRESI;
echo "<br>";

define("IL","İstanbul");
$nufus = 18;

echo IL."'un nüfusu ". $nufus. " milyondur.";

// hataları göstermek için
error_reporting(E_ALL);
ini_set('display_errors', 1);



$a = 5;

// daima iki eşittir ile kontrol yapılır
if($a==3){
echo "a sayısının değeri $a 'tür ";

}
else
{
echo "A sayısı: $a";
}


echo "<br>".$a;

echo "<br>";
$a = 5;
$b = 4;
$sonuc= $a*$b;

if($sonuc==20){
echo "a*b sonucu $sonuc";
}else{
echo "Yanlış";
}
echo "<br>";
if($sonuc==20 && $a==5)
echo "Doğru";
else{
echo "yanlış";
}


echo "<br>";


// ve ile koşul
if($sonuc==20 && $a==3)
echo "Doğru";
else{
echo "yanlış";
}


echo "<br>";



// veya ile koşul
if($sonuc==20 || $a!=5)
echo "Doğru";
else{
echo "yanlış";
}


echo "<br>";


$yil = date("Y");

$dyil = 2000;

$yas = $yil - $dyil;
echo "Yaş: ". $yas."<br>";
if($yas<=12)
{
echo "Çocuk";
}else{
echo "Yetişkin";
}

// mod alma
echo "Mod 20 ye göre yıl:". $yil % 20 ." <br>";
if($yil%20==5){
echo "doğru";
}else{
echo "yanlış";
}

$sayi = 257;
// iç içe koşullar
echo "Sayımızın mod 5'i ". $sayi % 5 ." <br>";
if($sayi%20==5){
echo "sayı mod 20'de 5'tir";
}else{

if($sayi%10==5){
echo "Sayı mod 10'a göre 5'tir";
}else{
echo "Bunların hiçbiri değil :(";
}
}






?>
     
 
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.