Posts by Domingos Coelho • 39 points
2 posts
-
0
votes2
answers71
viewsA: The correct way to count an array in PHP
From what you can tell, the variable $file contains the file name. If so, it is a variable of the string type, so it is error. For Count() to work, the $file variable has to be an array or object of…
-
3
votes2
answers160
viewsA: What strpos() returns when the searched value is not found?
When you compare, it is recommended that you do it with three equals (==). Thus, you compare the value of the variable and the type as well. The way you wrote (==), the values zero, empty string and…
phpanswered Domingos Coelho 39