Category:

PHP function to generate Slug

Here is simple function to generate slug in php. You can copy paste this function and generate slug by passing string in it.

ūüôā

Posted On :
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 :