"; $sayi = 50; for ($i = 1; $i <= $sayi; $i += 2) { if ($i > 4 && $i < 10) { continue; } echo "$i
"; } exit(); : Notes">

NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php



*
***
*****

10 satırlık



// rastgele bir sayı
//$sayi = rand(0, 50);


echo $sayi . "<br>";
$sayi = 50;
for ($i = 1; $i <= $sayi; $i += 2) {


if ($i > 4 && $i < 10) {
continue;
}
echo "$i <br>";
}



exit();


$metin = "Güneş SİSTEMİ, Güneş'in kütleçekim kuvvetiyle yörüngede tutulan ve çeşitli gök cisimlerinden oluşmuş bir sistemdir. Güneş ve 8 gezegen ile onların doğruluğu";

$parcalar = explode(" ", $metin);
//echo mb_strlen("İŞĞ","UTF-8");
echo strlen($metin) . "-";
echo mb_strlen($metin, "UTF-8");
echo "<br>";

foreach ($parcalar as $kelime) {

$ilk_harf = mb_substr($kelime, 0, 1, "UTF-8");
$sonrakiler = mb_substr($kelime, 1, strlen($kelime), "UTF-8");

// Büyük harfe dönüştür
//$ilk_harf = strtoupper($ilk_harf);
$ilk_harf = mb_strtoupper($ilk_harf, "UTF-8");

// küçük harfe dönüştür
$sonrakiler = mb_strtolower($sonrakiler, "UTF-8");

$kelime = mb_strtoupper(mb_substr($kelime, 0, 1, "UTF-8"), "UTF-8")
. mb_strtolower(mb_substr($kelime, 1, strlen($kelime), "UTF-8"), "UTF-8");

echo $kelime . " ";
}

/*

explode("a",$metin); // metni istediğimiz karakterden böler dizi yaparız.

mb_strtoupper($metin,"UTF-8"); // UTF-8 olarak büyük harf yapar
mb_strtolower($metin,"UTF-8"); // UTF-8 olarak küçük harf yapar
mb_substr($metin,3,5,"UTF-8"); // Metni başlangıç ve bitiş karakterlerini vererek parçalarız.
mb_strlen($metin,"UTF-8") // UTF-8 olarak karakter sayısını verir.
/// mb_ ile başlayan fonksiyonları kullanmalıyız, diğer türlü Türkçe karakterler sorun çıkarır.

*/



exit();

$sayı = rand(0, 10);
for ($df = 1; $df <= $sayı; $df++) {

echo "$df ";
for ($fd = 0; $fd < $df; $fd++) {
echo "TEST ";
}
echo "<br/>";
}


exit();


echo "<pre>";
print_r($parcalar);
echo "</pre>";

for ($i = 0; $i < count($parcalar); $i++) {

if ($i > 2) {
echo "...";
break;
}

echo $parcalar[$i] . " ";
}





// sayfayı burada bitir
exit();

for ($i = 0; $i < 10; $i++) {
$rasgele_sayi = rand(1000, 9999);
echo $rasgele_sayi . "<br>";
}





/* --------------------------------

X
XX
XXX
XXXX
XXXXX




*/



// 02.02.2023 Döngüler
/*
for ( // 1. döngü
$i = 0; // değişken tanımlama ve ilk değerin verildiği yer
$i < 5; // döngü nereye kadar gidecek belirlendiği yer
$i++ // döngü kaçar kaçar ilerleyecek / gerileyecek
) { // döngü başlangıcı
echo $i . "-";
for ($j = 0; $j < 10; $j++) { // 2. döngü başlangıcı
echo "X ";
} // 2. döngü bitişi

echo ($i * 5) . " <br>";
} // 1. döngü bitişi




for ($i = 1; $i <= 100; $i++) {

echo "X ";

if ($i % 10 == 0)
echo "<br>";
}

$degerler = array("Elma","Portakal","Kiraz","Masa","Kitap");


foreach($degerler as $deger){
echo $deger ."<br>";
}

$i=1;
while($i < 50 ){
// işlemler olacak.

echo " X ". $i;

$i++;
}

echo "<br>DEĞERLER";
$k = 0;
while($k < count($degerler)){

echo $degerler[$k] . "<br>";

$k++;
}

echo "<hr>";

for($i=0;$i < count($degerler); $i++)
echo $degerler[$i] . "<br>";



*/

/*
while($r = mysqli_fetch_array($result)){

}
*/

if ($i == 5) {
}










?>
<select name="ay">
<option value="">Ay seçiniz</option>
<?php
$aylar = array("Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık");
foreach ($aylar as $ay) {
echo "<option value='$ay'>$ay</option>";
}
?>
</select>
<select name="gun">
<option value="">Gün seçiniz</option>
<?php

for ($i = 1; $i <= 31; $i++) {
echo "<option value='$i'>$i</option>";
}
?>
</select>

<select name="yil">
<option value="">Yıl seçiniz</option>
<?php

for ($i = 2023; $i >= 1950; $i--) {
echo "<option value='$i'>$i</option>";
}
?>
</select>
     
 
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.