You can use a text editor like Sublime or Notepa++. Dont use word editor. Enter the following code in the editor. Save it as file_name.php (For eg., version.php). Upload the file to the web server and run it in a web server. (hostname/file_name.php)
Email validation is a part of validation in PHP. eregi function is helpful for checking email validation using PHP. We can check the email is added in a proper email format. You can enter any email address and can check the email is valid or not. This tutorial is helpful for knowing more about PHP form validation.
explode and implode function in PHP. explode function in PHP split the string into an array by using the separator. The separator cannot be blank.
PHP is a web programming language used to develop dynamic web applications. The full form of PHP stands for Hypertext Preprocessor. PHP is a server-side scripting programming language. That means PHP scripts execute only in the server. It is open-source software. It is free to use and download.
All these functions are used to include a file into another file. require() function includes a file and evaluates it.Â require_once() includes the file if and only if is not added before. require_once() includes the file if and only if is not added before. require_once() is more recommended than require() function.
Arrays are used to store multiple values under a common name. An array is a special variable that can store multiple values. array() is used to create an empty array. Suppose if you want to initialize a variable as an empty array, you can use it like this.
The session is a superglobal variable and it is an alternative way to store data across multiple pages or it preserve data across subsequent HTTP requests. The session can be defined as a method to store information on the server, which can be used in the future.
How to Get current version of PHP. You can use a text editor like Sublime or Notepa++. Dont use word editor. Save it as file_name.php (For eg., version.php). Upload the file to the web server and run it in a web server.
Sort functions in PHP are used to sort elements in an array in ascending order or descending order. sort functions in PHP. sort(): Sort the elements in an array using ascending order. rsort(): Sort the elements in an array using descending order.
GET and POST are used to send data from one page to the other page. Or it can be say that GET and POST is used to send data from client server to web server. GET has restriction in data size to send the data. But POST has no restriction in data size to send. The GET method transfers the data using HTTP header, whereas POST method transfer data using HTTP header.
An array stores value under a common name. An array is a variable that can hold more than one value at a time. In PHP, array() function is used to create the array. Arrays in PHP can be divided into three. Indexed Arrays, Associative arrays and Multidimensional Arrays.
Instead of writing the same code several times, you can use loops. PHP Loops are used to execute the code again and again as long as the certain condition becomes true. In PHP, we have the following loops- For loop, While loop, Do while loop and foreach loop.
To return a value, use the return statement.
Functions in PHP is divided into two. Built-in Functions and User-Defined Functions. PHP has over more than 1000+ inbuilt functions. It is possible to create your own user-defined functions in PHP. A function is a block of statements that will execute a task.
Who is the father of PHP - Rasmus Lerdorf. How can we encrypt and decrypt a username and password using PHP? The function below performs encryption and decryption - ENCODE() DECODE(), AES_ENCRYT(), AES_DECRYPT(), DES_ENCRYPT(), DES_DECRYPT(), OLD_PASSWORD()
|C Programming Language|
|C++ Programming Language|
|PHP Programming Language|
|Algorithm and Flowchart|
|Yii or Y2i Framework|
|HTML Programming Language|
|Current Affairs 2020 July 13|
|History of PHP|
|Current Affairs 2020 June 23|
|Top Universities In India|
|Current Affairs 2020 June 20|
|Current Affairs 2020 July 3|
|Data Types in C|
|The function of vitamin and minerals|
|UPSC (Union Public Service Commission) Exam Details|
|BA Programme in Economics, Different Specializations, Course Subjects, Core Courses|
|Current Affairs 2020 June 4|
|Switch Statement in C|
|Different phrases for introduction|
|National Highways PSC, SSC, UPSC, RRB Competitive Examination Questions|
|What is the function of git log?|
|Units Of Computer Memory Measurements|
|Electronics and Communication Engineering Course Details, Course Subjects, Eligibility, Career Opportunities|
|The Uses Of Function Keys In Keyboard|
|Return Statement in C|
|Basic Facts About Human Body|