is_numeric() vs. is_float() vs. is_int()
My understanding is... if `is_numeric($input) === true` then either `is_float($input) === true` OR `is_int($input) === t...
Latest news, tutorials, and updates from the PHP community
8579 articles available
My understanding is... if `is_numeric($input) === true` then either `is_float($input) === true` OR `is_int($input) === t...
In my model I have the follow query: [Code Block] This query only return one row. In my controller I have the next code:...
I would like to convert a variable `$uptime` which is seconds, into days, hours, minutes and seconds. Example: [Code Blo...
How can I pass a model method's result set data to my view? [Code Block] and view [Code Block]
I'm getting a string from a $_GET and I want to test if it could be a boolean, before I use it for a part of a mysql que...
[Code Block] I know it works without the first line, but it's often included in practice. What is the reason? Is it unsa...
How do you use define within a heredoc? For example: [Code Block]
I have got a function from Google to clean my paragraph in sentence case. I want to modify this function such that it co...
I was trying to create an xml response using CodeIgniter. The following error gets thrown when I run the code. This page...
I have an array which contains numbers like "331,554,22" or it could be "45", lets say the array is called `$numbers`. I...
I have a little problem with this piece of code. The script connects, but it wont give me the folders that are located i...
I need to create a random number with a specific amount of digits. How can I do this in PHP?
Showing 7801 to 7812 of 8579 articles