Category Archive for: "PHP"

  1. PHP

    How To Remove Duplicates From Array Using PHP

    While working with arrays, there may have been a time when you came across duplicate values in array. In some cases, these duplicates values are undesirable and you may want to remove these duplicate values from the same array. So do you know how to remove duplicate values from array? If not then here are […]

  2. PHP

    PHP Remove Value From Array Examples

    While dealing with arrays in PHP, there could be times when you would want to remove a specifc value from array, once you know what that value is. This could help you retain only the data that you want in the array. So do you know how to use PHP to remove value from array? […]

  3. PHP

    How To Remove Whitespaces Using PHP – Examples

    If you have read my previous article on how to remove spaces from string, then you would be interested in this article too. In general terms, space is nothing but a gap between two words whereas a “whitespace” could be a tab, a space,  a line feed or a carriage return. The procedure to remove […]

  4. PHP

    How To Remove Spaces From String Using PHP

    When dealing with strings, a single space or multiple spaces could be the part of content. So at times, it might be necessary to remove this single space or remove the multiple spaces from string. So if you do not know how to remove space from string, then this article is for you. In this […]

  5. PHP

    How To Remove HTML Tags From String Using PHP – Examples

    When using PHP to process the server side requirements of data cleansing, it can be immensely helpful to know how to remove HTML Tags from the user input. If these html tags are not removed, then your application may break, depending upon it’s architecture. So assuming that you do not want user to allow user to input […]

  6. PHP

    Using PHP To Delete / Remove Array Keys

    When working with arrays in PHP, there may have been a time when you know the exact “key” of the array element that you wish to perform an operation on, such as delete, edit, etc. So do you know how to remove this key from the array so that the associated value is also deleted […]

  7. PHP

    Using PHP To Remove Last Array Element / Item

    Once again, we come back to Arrays. In the previous article, we have seen how important it could be remove first array item. Now it would be really helpful  to find out how to remove last array item using PHP. In this article, I am going to share very easy way to use PHP to remove […]

  8. PHP

    Using PHP To Remove First Array Element / Item

    Arrays are an important concept in PHP. So while it’s easy to create & destroy a complete array, it can be immensely useful to find out how to remove first array item using PHP. In this article, I am going to share very easy way to use PHP to remove first array element by making use of […]

  9. PHP

    Add To An Array Using PHP Examples

    No programmer or developer can deny the importance and usefulness of arrays, regardless of the programming language used. A very basic, yet important concept is to add element to array using PHP. So do you know how to add an item to an empty array or simply add to an array with pre-existing elements? If […]