How to create a datetime by adding a number of weeks to the current date in PHP
I need to make a timestamp to put into MySQL. The user is submitting a number (of weeks) and I need to add that many wee...
Latest news, tutorials, and updates from the PHP community
6985 articles available
I need to make a timestamp to put into MySQL. The user is submitting a number (of weeks) and I need to add that many wee...
I need to be able to call a function, but the function name is stored in a variable, is this possible? e.g: [Code Block]
How would I get something like this to work? [Code Block]
Simple question but this is killing my time. Any simple solution to add 30 minutes to current time in php with GMT+8?
I am trying to make an online kickstart config file creator. After the file is created on the server how do I get the do...
I don't get this: http://localhost/index.php/articles/edit/1/my-first-article This URL is mentioned as an example in the...
i think the title is self-explanatory, i work with easyPHP 1.7, which has the php version 4.3.3, which by itself doesn't...
I am trying to define a 2d array in php. I have some concept code so you can see the situation: [Code Block] The error t...
Given a string such as: [Code Block] I want to find every integer within quotes and create an array of all integers foun...
In a string like `"abc fox fox fox ghi xyz"` how can i get the number of times 'fox' is repeated in the string?
I'm, generating a SQL query like this in PHP: [Code Block] Since almost every part of this query is dynamic I need a way...
How would you flip 90 degrees (transpose) a multidimensional array in PHP? For example: [Code Block] How would you imple...
Showing 6913 to 6924 of 6985 articles