Validating User Input in PHP An HTML form contains various input fields such as text box, checkbox, radio buttons, submit button, and checklist, etc. These inputs need to be validated, and ensures that the user has entered information is valid and correct. PHP validates the data at the server-side, which is submitted by HTML form. User validate data foll…
Read moreManipulating the string as an array in PHP PHP provides various in-built methods to convert a string to an array. Following are the methods for converting a string to an array. 1. str_split() Function 2. explode("DELIMITER", STRING) 3. preg_split() Function 4. str_word_count() Function 5. Manually loop through the string 1.…
Read moreDynamic Page Title in PHP PHP is a server side programming language so can change the title of web page dynamically. Example :- <!DOCTYPE html> <html> <head> <title> <?php $a= array ( "first title", "Second title", " Thirrd title", "fourth title" ); $i=rand(0,…
Read more
Social Plugin