Category: PHP Tutorials

Learn PHP for website development.

PHP strrev() string function

The strrev() function in PHP The strrev() function used to returns a reverses character of given string. strrev() function syntax strrev(“string”); PHP strrev() function example…

Continue Reading PHP strrev() string function

PHP str_word_count() string function

The str_word_count() function in PHP The php str_word_count() sting function is used to count a number of words in a string. str_word_count() function syntax str_word_count(“string”);…

Continue Reading PHP str_word_count() string function

PHP substr() string function

The substr() function in PHP The substr() function used to returns some portion of given string by assign start and length values. substr() function syntax…

Continue Reading PHP substr() string function

PHP strlen() string function

The PHP strlen() function returns the string length, means count of character string contain. Here we take an example of count character of given string…

Continue Reading PHP strlen() string function

PHP string functions

In previous php tutorial we learnt what is function and how to use function in php. In this  php tutorial we will learn some in-built…

Continue Reading PHP string functions

$_GET, $_POST and $_REQUEST function in PHP

$_GET, $_POST and $_REQUEST in PHP In this php tutorial we will learn how to handle form in php. In other word we can say…

Continue Reading $_GET, $_POST and $_REQUEST function in PHP

HTML Action attribute and PHP

Form ACTION attribute with PHP In php when we submit the form the form where should be sent it depend on Action attribute. The Action…

Continue Reading HTML Action attribute and PHP

PHP GET and POST Methods

The GET and POST Methods The html METHOD attribute used to send information to web server in different way. The ways are GET method and POST…

Continue Reading PHP GET and POST Methods

PHP with HTML Forms

PHP with HTML Form In this php tutorial we will learn how to write php server side code with html form to create a web…

Continue Reading PHP with HTML Forms

Function in PHP

PHP Functions PHP function is group of code which execute as per our requirement. PHP function is a code which get some value process it…

Continue Reading Function in PHP

Constant in PHP

PHP Constant PHP constant is same as variable but we never change constant value during the execution of program. We can use constant only when…

Continue Reading Constant in PHP

PHP foreach loop

PHP foreach loop In foreach loop used in on array. In foreach loop each element of array is assigned to $value and we can use…

Continue Reading PHP foreach loop