Category: PHP

0

Run custom query in symfony 1.2 with propel

Sometimes we require to execute complex query in symfony 1.2 with propel. For this following code can be used. $rowObj will have result of your given query. You can check it via var_dump or...

Install imagick php extension 0

array_reverse in PHP

array_reverse is one of array functions in php. It takes an input array and returns a new array with the order of the elements reversed. It can take two parameters first is array that...

Add menu item programmatically in WordPress 0

Custom queries in wordpress

We can create custom queries to show post for wordpress based websites or blogs. Custom query parameters can pass to wordpress function WP_Query. These queries cover posts, pages, taxonomies, custom fields. Following is the...

Install imagick php extension 0

How to display users Gravatar image?

Many users have images on Gravatar. If you want to dispaly user’s Gravatar image then you just need email address of that user and get its MD5 hash then append it to Gravatar URL....