Sir how to use sub str() and str len() on the function.? Thank you. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Sir how to use sub str() and str len() on the function.? Thank you.

3rd Apr 2017, 8:51 AM
JESSERSON GEMMON
JESSERSON GEMMON - avatar
2 Réponses
+ 1
<?php $name = 'Dexter'; echo strlen($name); //otputs 6 (how many symbols in $name?) echo strlen('Dexter Enriqe'); //outputs 13 (space a symbol too) ?> http://php.net/manual/en/function.substr.php
3rd Apr 2017, 10:13 AM
Emptyman
Emptyman - avatar
0
thank you once again.
3rd Apr 2017, 11:13 PM
JESSERSON GEMMON
JESSERSON GEMMON - avatar