How to use preg_split() to split on spaces or double-quoted expressions including optional leading/trailing spaces
I need to split a string by double-quoted expressions which may have leading or trailing spaces, otherwise split on spac...
Latest news, tutorials, and updates from the PHP community
8612 articles available
I need to split a string by double-quoted expressions which may have leading or trailing spaces, otherwise split on spac...
I receive this error : Trying to get property of non-object [from Model] When i try to retrieve id from database by inpu...
How to merge two delimiters in `preg_split`? For example: [Code Block] will produce an array as [Code Block] but I want ...
The way I made it work is create a dedicated controller that handles my forms that repeat on multiple pages i.e. `somedo...
Hi i'm using this script to upload a photo and store it in a directory. It works perfect and even resizes the photo but ...
I'm trying to get records from my database table where the datetime column (`dateadd`) matches one of two date values. U...
I have an array [Code Block] which contains id's of certain users. I need to get the countries of these users from datab...
I have two eelated tables: login(id, name, role, login_user_id) teacher(teacher_id, teacher_branch_id) I need to filter ...
Can someone tell me how to rewrite this MySQL query with CodeIgniter's query builder ? [Code Block]
Can I get an eyeball on my symlink? I'm trying to download a file from one directory, while the file actually exists in ...
I'm using ActiveRecord in my app. I need to add many objects by attribute. Currently I do it as follows: [Code Block] Bu...
My joined table returns the first posts row right now, but I want it to have the last row for each topic. This is my (in...
Showing 7273 to 7284 of 8612 articles