Blog – Masonry

PHP

How to remove new line from string php?

Using The removeNewline() function and remove new lines from string and replace with one empty space.

PHP

How to remove numbers from left string in php?

The function returns a substring from the left to the position with the first numeric character.

PHP

How to remove number from right string in php?

The function will remove numeric characters at the end of the string.

PHP

How to compare two array values in php?

In this tutorial, You can use array_\diff() function to compare an array to one or more other arrays.

PHP

How to check a string contains substring in php?

The function will check a string contains substring, the string to be checked may contain underscores.

PHP

How to remove value from array in PHP?

In this post, the function will remove the element from an array by value, we can use the combination of array_search() and unset() functions in PHP.

PHP

How to get a random string in php?

This tutorial includes several methods of generating a unique, random, alpha-numeric string with PHP.

PHP

How to convert pascal case decode in php?

In this post, We will show you how to convert pascal case decode.

PHP

How to sort array in PHP?

In this post, we show you 2 ways to sort arrays using strnatcmp() and strcmp() functions.