I can't understand that $a = count("123","45"); echo $a; . Output: 1. Why?Please explain me more. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

I can't understand that $a = count("123","45"); echo $a; . Output: 1. Why?Please explain me more.

It is strange...

23rd Jun 2019, 5:49 PM
Sanjar Sobirjonov
Sanjar Sobirjonov - avatar
2 Respuestas
+ 2
Your array is "123" so one element.
24th Jun 2019, 12:28 AM
John Wells
John Wells - avatar