متنوعات
$tok = strtok ($string," "); while ($tok) {
echo "Word=$tok<br>"; $tok = strtok (" ");
}
http://localhost/test/p7/new21
File
Edit View Favorites Tools Help
Back
Stop Refresh
Address
http://localhost/test/p
Go Links
Word-This
Word-is
Word-an
Word=example
Word-string
Done
تحويل النص إلى حروف صغيرة //
Local intranet
الفصل السادس
// Strtolower() example
$str = "Mary Had A Little Lamb and She LOVED It So";
$str1 = strtolower($str);
print $str1; # Prints mary had a little lamb and she loved it so
تحويل النص إلى حروف كبيرة //
echo "<BR>All capital :<BR>"; // Strtoupper() example
$str2 = strtoupper ($str);
print $str2; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
۲۱۱
ص ٢١١