How to access a subarray value using a variable as the key [closed]
I use the `arsort()` function to get the array that has been added the latest. This all works fine. [Code Block] When I ...
Latest news, tutorials, and updates from the PHP community
7044 articles available
I use the `arsort()` function to get the array that has been added the latest. This all works fine. [Code Block] When I ...
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...
Showing 6265 to 6276 of 7044 articles