Create slug with PHP

Function generateSlug() generates seo friendly url slug after receiving a string parameter. All unsupported url characters are removed from the string automatically.

Continue


Find a string between 2 points with PHP

Function findString() finds a string between 2 tags or points. function accepts 3 parameters.

Continue


Format credit card number with - hyphen

formatCreditCard() formats the credit card number by adding "-" after every 4 digits.

Continue


Generate Random Password

generatePassword () is custom designed php function to generate random password, random string or random verification code. the length of password or code can also be defined by passing integer length parameter

Continue


Mask credit card number with X in PHP

maskCreditCard() masks credit card number with X except last four digits.

Continue


Remove extra spaces from a string

Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.

Continue


Replace text between 2 tags with PHP

Function replaceTags() replaces text, string or content between 2 given points. This is a great function if you are working with tempaltes.

Continue