Sometimes we need to get the last day of the month on specific date in mysql becoz every month has different last day eg. FEB. may have 28 or 29, JAN has 31 and APR has 30.

Read More

DAY() in MySQL returns the day of the month for a specified date. The day returned will be within the range of 1 to 31. If the given date is ‘2013-03-13’, the function will return 13.

Read More

The array_merge() function merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array.

<?php
$A1=array("apple","papaya");
$A2=array("banana","grapes");
print_r(array_merge($A1,$A2));
?> 

Output would be :
Array ( [0] => apple[1] => papaya[2] => banana [3] => grapes ) 

Read More

[ Page 4 of 4 ]