the following function
<?php
//PHP FUNCTION RETURN THE LENGTH OF STRING
function my_strlen($word){
$i = 0;
while(@$word[$i]){
$i++;
}
return $i;
}
echo my_strlen("PHP FUNCTION RETURN THE LENGTH OF STRING ");
Please format the code you posted, by wrapping it in triple backticks. -> `
No, that is not the right way.
Just use strlen lol
Обсуждают сегодня