PHP Tutorial Library

52 Lessons

eval() in PHP

eval() is a language construct in PHP, which is used to evaluate a given string as PHP code and then execute it. In this tutorial, you will learn about the usage and benefits of PHP eval().

    preg_replace() Function in PHP

    The preg_replace() function, a built-in function in PHP used to check strings using a regular expression to find and replace a string in content. In this tutorial, you will learn about the preg_replace() function of PHP.

      URL Encoding and Decoding with PHP

      Encoding and decoding URL strings are used to convert general URL strings and characters into an arrangement that can be conveyed over the internet. In this tutorial, you will learn about two ways in which URL string can be encoded and decoded in PHP.

        sleep() Function in PHP

        sleep() function is one of the important built-in functions provided by PHP version 4.0 or above to delay any script's execution process for a certain time interval. In this tutorial, you will learn about the sleep() function that helps delay any PHP script execution.

          strlen() Function in PHP

          PHP strlen() function is used to count the length of a given string or check the number of characters in a string. In this tutorial, you will learn about the strlen() function of PHP.

            ksort() Function in PHP

            PHP's ksort() function is a predefined array sorting function that helps sort an associative array in ascending order based on the keys of the array. While coding, this can be useful in some scenarios, so you should know about it.

              strlen() Function in PHP

              Counting the length of a string in a program is an essential concept that is used in various coding scenarios. This can be done either by manually typing the entire looping program to count each character of the string, or […]

                gettype() Function in PHP

                The gettype() function is an inbuilt library function in PHP used to obtain the data type of an existing variable. It helps the programmer to find the type of data associated with a particular variable that is needed in the program itself.

                  Scroll Back to Top