Variables are a vital part of the server-side language, PHP. They are unavoidable but very simple to learn. In this short tutorial, I hope to give you a basic insight into using them.
PHP is a powerful web based scripting language. This tutorial aims to provide a brief description of PHP and its usage in every day web development projects. It by no means aims to provide a basis on how to use PHP effectively to create large scale projects, but rather as an introduction to those who want to learn how to use PHP.
A collection of 14 tips on PHP string literals, operations and conversaion. Clear explanations and tutorial exercises are provided on single-quoted strings, double-quoted strings, string elements, concatenation, converting values to strings, converting strings to values: What Are the Special Characters You Need to Escape in Quoted Stings?
Can You Specify the "new line" Character in Single-Quoted Strings?
How Many Escape Sequences Are Recognized in Quoted Strings?
How Many Escape Sequences Are Recognized in Double-Quoted Strings?
How To Include Variables in Double-Quoted Strings?
How Many Ways to Include Variables in Double-Quoted Strings?
How Many Ways to Include Array Elements in Double-Quoted Strings?
How To Access a Specific Character in a String?
How To Assigning a New Character in a String?
How To Concatenate Two Strings Together?
......
This is a comprehensive article / tutorial on programming in PHP. It covers a variety of key topics including PHP Structure, Scalar Variables and Data, Data collection: Arrays, Operations and Comparisons, PHP Comparison Operators, PHP Logical Operators, Control Statements, The Function of Functions, and Object Orientation.