Category:

Resolve CORS header Access Control Allow Origin error in PHP

Some time we get Cross origin requests error while working with angular. here is a working solution how to resolve this error

🙂  

Posted On :
Category:

Push array or value at specific position in php

Simple and easy way to add item at specific position of array in php

Output:

 

Posted On :
Category:

Get next and previous day with php

Here is a simple trick to get next and previous day with php. For next day

For previous day

 

Posted On :