Data Types and Variables PHP / Getting Started
This tutorial describes: What are PHP data types, How to define variables, references, and variable variable names, How to define and use constants.
Variable Naming in Php PHP / Getting Started
The Variable Naming standard you choose, can be anything you want, bearing in mind that different languages have restrictions on what can be used to name variables, and some keywords are banned from being included in variable names. Some languages are also case sensitive, or insensitive, and that also has as effect on variable names.
String in Php PHP / Getting Started
After integer.. maybe just after integer, strings are possibly the most important variable types in programming. Storing a bunch (series) of character as one variable. PHP give you alot of functions to manipulate and handle strings.You can think of string as an array of characters, and individuals characters can be accessed using the index of the character withing the string.
PHP Variables and Strings PHP / Getting Started
A nice tutorial on What a Variable and String are, the purpose of a Variable and a String and an Example for both a Variable and a String.
Variables PHP / Getting Started
A variable is a holder for a type of data. So, based on its type, a variable can hold numbers, strings, booleans, objects, resources or it can be NULL.
Develop rock-solid code in PHP: Use variables effectively PHP / General Development
The series Develop rock-solid code in PHP is about solving practical, real-life problems in medium- to large-scale applications. In this article, PHP veteran Amol Hatwar discusses how to use variables effectively. He also shows how to make script configuration easy by constructing a configuration file parser using variable variable names in PHP.
ISO to UTF-8 Tutorial PHP / Miscellaneous
Searching the web for a problem I face on a greek site about encoding, I found a very useful PHP class which changes the charset of a variable.
Using arrays PHP / Getting Started
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
Using arrays: basics PHP / Getting Started
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
Using Arrays (with EXPLODE) PHP / Getting Started
Arrays are a collections of data, grouped into one variable, along a variety of streams. For example, I might have 6 names in one array, and to access the names I'll use $names[0], $names[1], etc. This function is often used with the FOR and FOREACH functions, but as this tutorial is written for beginners, I'll stick to using the WHILE() statement instead.
PHP Arrays PHP / Getting Started
When i first started learning PHP arrays confused me. I learned Perl first; arrays and variables in Perl are represented with different symbols. Not so in PHP, an array looks exactly the same as a variable, it starts with the dollar ($) sign.