Category : PHP

Get unique values from multi-dimensional array

Sometimes you have a multi-dimensional array and you only need the unique arrays in it. here is a simple solution using pure php function

Increase memory size or execution time

In case you wanted to increase memory size or loading or execution time here is this small snippet

Mysql timestamp to date

To convert a mysql date to an ordinary date you can use the following snippet

Search in a multi-dimensional array

If you want to search for a value in a certian column in a multi-dimensional array, consider using one of the following examples.