php web development is a server-side scripting language used to create web applications. php code can be embedded into html files, php pages, and php scripts. This article will focus on the basics of php such as creating variables and arrays.
- php is a server side scripting language that can be embedded in html files, php pages and php scripts.
- php code cannot interact with the end user like javascript does because it runs on the web server so only outputs what you tell it to do. (ex: echo "hello world")
- php works well for manipulating text data or interacting with other languages via cgi forms using variables which store information such as strings of words and numbers.
- Arrays are collections of values that contain keys and their corresponding values such as arrays containing usernames, passwords, hashcodes etc. The following examples will help clarify how array syntax works to access items within an array by index number or key name.
The Beginning is going to be the php language. PHP is a scripting or programming language that is used on the web server and outputs only what you tell it to do. It does this by using statements such as echo "hello world" for printing data, $variable = array() for creating an empty array with keys and values of your choosing
- php works well when manipulating text data or interacting with other languages via cgi forms (forms written in php).
- Arrays are collections of values stored together where each value has a key name which links back to their corresponding value like arrays containing usernames, passwords, hashcodes etc. The following examples will help clarify how syntax works to access items within an array by index number or key name:
echo "
echo is also going to help the php web development beginner learn how to output data. php works well when manipulating text data or interacting with other languages via cgi forms (forms written in php). Arrays are collections of values stored together where each value has a key name which links back to their corresponding value like arrays containing usernames, passwords, hashcodes etc. The following examples will help clarify how syntax works to access items within an array by index number or key name:
- echo "hello world" for printing data
- $variable = array() for creating an empty array with keys and values of your choosing
- php works well when manipulating text data or interacting with other languages via cgi forms (forms written in php).