|
Search:
Advanced search
|
Browse by category:
|
Contact Us |
|
Showing: 1-9 of 9
Articles
|
|||
|
Assigning a variable to a variable within a loop using PHP
If you have an occasion where you need to assign variables where the full variable is the same except for (as with this case) only part of the...
|
|||
|
|||
|
Nested Variable assignments within PHP - Calling a variable with a variable inside a FOR loop
Say in the following example you wish to echo all of the following columns without listing them individually. (i.e. "echo $COLUMN1, $COLUMN2...
|
|||
|
|||
|
View Day of the week based on date
To display the day of the week based on a date.
$date = '2009/01/26';
$weekday = date('l', strtotime($date)); // note: first arg to date() is...
|
|||
|
|||
|
Multi-dimensional PHP Arrays
Two-dimensional Arrays
Imagine that you are an owner of a flower shop. One-dimensional array is enough to keep titles and prices. But if you need...
|
|||
|
|||
|
How to Return more than one value from a PHP array
Easy Example how to return more than one value from a PHP array without using a loop to extract the...
|
|||
|
|||
|
Populating an array inside of a for loop using PHP
Populating an array from inside a loop is very easy:
file:...
|
|||
|
|||
|
Function to make all http prefixed URLs in text output hyperlinks
EXAMPLE:
=====================================================
$NOTES="this is at test to make http://bennovations.com" a...
|
|||
|
|||
|
Select MAX Value from MySQL Database using PHP
$query="SELECT MAX(torder+0) as maxnum FROM triage_order ;";
$result = mysql_query($query) or die ("couldn't execute query...
|
|||
|
|||
|
PHP Function to display the current day and date based on timezone
SAMPLE PHP Function to display the current full alphanumeric day, and the date based on 3 timezones (AMER/APAC/EMEA)
Where:
AMER=US Time
EMEA =...
|
|||
|
|||
Powered by
KBPublisher (Knowledge base software)