• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 1

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

It is strange...

phpcount()
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
0
https://www.w3schools.com/php/func_array_count.asp
23rd Jun 2019, 8:31 PM
Russ
Russ - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
How to properly reverse a string in python
4 Votes
Can someone explain how it works (im new)
1 Votes
Using Python on VScode
2 Votes
Python Developer
0 Votes
hi my coding instor told me to make a calculator that find the average of two numbers can you pls tell me my erro
0 Votes
Average of Two Numbers
0 Votes
Wayss
0 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
1 Votes
Hearts
0 Votes
Can I take the certificates after finished the lessons?
1 Votes