Archive for April, 2010

Print Array in PHP

There are various methods and commands used in PHP to print an array of elements. They are different in the way they print the array elements.
I will cover three main ones I usually use.
Lets assume an array as follows to explain the various types of printing.

Continue reading “Print Array in PHP” »


, , , , ,

2 Comments

Check if a table exists in MySQL from PHP

Sometimes its necessary to execute a query or execute some code if a table exists or not. So a bit of searching got me to the conclusion that mysql doesn’t have a direct query or method for it from php. So there are two methods to do it. Continue reading “Check if a table exists in MySQL from PHP” »


, , , , , ,

1 Comment