Friday, November 4, 2022

PHP code for String Tokenize

 PHP code for String Tokenize


<?php
$string = "Hello Kamal. How are you Doing?";
$token = strtok($string, " ");

while ($token !== false)
{
echo "$token<br>";
$token = strtok(" ");
}
?>