How to code this in php? Help me please ty | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to code this in php? Help me please ty

Insert a number the the ouput must be Output: 1 2 3 string 5 6 string string 9 10 Number 4,7 and 8 must chang into string

15th Jan 2021, 5:59 AM
Yare Yare
Yare Yare - avatar
1 Answer
+ 2
The strval() function is an inbuilt function in PHP and is used to convert any scalar value (string, integer, or double) to a string. We cannot use strval() on arrays or on object, if applied then this function only returns the type name of the value being converted. Return value: This function returns a string. Now you can try to make it by own! Try it, All the Best!
15th Jan 2021, 6:17 AM
Abhiyantā
Abhiyantā - avatar