PHP code for String Tokenize
<?php
$string = "Hello Kamal. How are you Doing?";
$token = strtok($string, " ");
while ($token !== false)
{
echo "$token<br>";
$token = strtok(" ");
}
?>
Learn Android very Easily and Step by Step with this blog.
ππ»π Romantic DP for Whatsapp π₯°π
PHP code for String Tokenize
<?php
$string = "Hello Kamal. How are you Doing?";
$token = strtok($string, " ");
while ($token !== false)
{
echo "$token<br>";
$token = strtok(" ");
}
?>
<?php // Initializing a variable with filename $file = 'myfilename.jpg' ; // Extracting only filename using constants $fileWithoutExt = pathinfo ( $file , PATHINFO_FILENAME); // Printing the result echo $ fileWithoutExt; ?>
Output
|