Changes

Jump to: navigation, search

Understanding PHP Variable Types

No change in size, 19:08, 11 May 2009
no edit summary
== Extracting and Writing String Fragments ==
Once we have defined a string variable we can extarct extract or make changes to individual characters in the string using what is termed {x} notation, where ''x'' represents the index into the string of the character we wish to view or change. Before we look at an example, it is important to keep in mind that the index into the string is zero based. By this we mean that the first character of the string is in position 0, not position 1. For example, to change the first and last characters of a string variable:
<pre>

Navigation menu