<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; Beginner</title>
	<atom:link href="http://newsourcemedia.com/blog/category/php/beginner-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to Swap Depth using AS3 via setChildIndex</title>
		<link>http://newsourcemedia.com/blog/as3-getnexthighestdepth-is-no-longer-supported/</link>
		<comments>http://newsourcemedia.com/blog/as3-getnexthighestdepth-is-no-longer-supported/#comments</comments>
		<pubDate>Mon, 11 May 2009 20:20:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Workarounds]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=534</guid>
		<description><![CDATA[How to swap depth using AS3 via setChildIndex. This will fix the Warning: 1060: Migration issue: The method getNextHighestDepth is no longer supported. For reference, here  is how depth management was done using AS2: mc.onRollOver = function():Void { // move &#8230; <a href="http://newsourcemedia.com/blog/as3-getnexthighestdepth-is-no-longer-supported/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to swap depth using AS3 via setChildIndex. This will fix the Warning: 1060: Migration issue: The method getNextHighestDepth is no longer supported.<span id="more-534"></span>

<strong>For reference, here  is how depth management was done using AS2:</strong>
<pre lang="actionscript">mc.onRollOver = function():Void
{
// move current movie clip forward to the next highest depth
this.swapDepths(this._parent.getNextHighestDepth());
}</pre>
<strong>Here's how to swap depth in Actionscript 3.</strong>

Use the setChildIndex method to changes the position of an existing child in the display object container with the instances name "holder_mc". This affects the layering of child objects. This example used below attaches a movie clip from the library three times. That movie clip Linkage class is named "MyMC". Inside of that movie clip is a nested movie clip not a graphic shape. I made sure to use a nested movie clip so we could dynamically attach variable and target them later via the mouse event.
<pre lang="actionscript">// loop through to create three mc's on stage
for (var i:int = 0; i <3; i++) {
var myColor:ColorTransform = new ColorTransform();
myColor.color = (Math.random() * 0xFFFFFF);
var mc:MovieClip = new MyMC();
mc.x = ((i * 80) + mc.width);
mc.y = 100;
mc.id = i;
mc.name = "b"+i;
mc.transform.colorTransform = myColor;
mc.buttonMode = true;
mc.addEventListener (MouseEvent.MOUSE_OVER, swapDepths);
holder_mc.addChild (mc);
}

function swapDepths (e:MouseEvent):void {
var mc:MovieClip;
mc = e.target.parent;
trace (mc.id);
holder_mc.setChildIndex (holder_mc.getChildByName("b"+mc.id), (holder_mc.numChildren - 1));
}</pre>
The most important part above is the setChildIndex referencing the current child by name (getChildByName) and finding the highest index number (numChildren-1) for placement.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/as3-getnexthighestdepth-is-no-longer-supported/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Lesson 1 &#8211; First PHP Script</title>
		<link>http://newsourcemedia.com/blog/php-lesson-1-first-php-script/</link>
		<comments>http://newsourcemedia.com/blog/php-lesson-1-first-php-script/#comments</comments>
		<pubDate>Mon, 02 May 2005 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[easy lesson]]></category>
		<category><![CDATA[first time]]></category>
		<category><![CDATA[new to php]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web page]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2005/05/01/php-lesson-1-first-php-script/</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/php-lesson-1-first-php-script/"><img title="PHP Lesson 1 &#8211; First PHP Script" src="http://images.hotscripts.com/static/1.gif" alt="PHP Lesson 1 &#8211; First PHP Script" width="0" height="200" /></a></span><br/>If you are new to PHP, this is for you. Here you will learn how to create and run a PHP web page for the first time. Introduction In this tutorial you will learn how to run a PHP script. &#8230; <a href="http://newsourcemedia.com/blog/php-lesson-1-first-php-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/php-lesson-1-first-php-script/"><img title="PHP Lesson 1 &#8211; First PHP Script" src="http://images.hotscripts.com/static/1.gif" alt="PHP Lesson 1 &#8211; First PHP Script" width="0" height="200" /></a></span><br/>If you are new to PHP, this is for you. Here you will learn how to create and run a PHP web page for the first time.
<span id="more-257"></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"><strong>Introduction</strong></span>

<strong></strong>In this tutorial you will learn how to run a PHP script.

Open a text editor application. Be sure to use a simple text editor, nothing    like MS Word because a big text programs will add extra characters and bugs    to your code.
<span style="font-size: xx-small;">Advertisement</span>
<a href="http://www.hotscripts.com/?RID=147086"><img src="http://images.hotscripts.com/static/1.gif" border="0" alt="" /></a>

In order to run PHP, you are going to need a web server with PHP installed. We recommend <a href="http://partners.ipower.com/z/10/CD1212/">iPowerWeb.com</a> for only $7.50 with Unlimited Disk Space, Subdomains, and Emails Accounts.    Another requirement for running PHP scripts on a server is the extension file    name format. By default you must use a ".php" extension on your PHP web page    files. Other extensions that may work depending on you server are ".php3" and    ".php4".

O. K. Let's start on our first script. To begin a block of PHP statements we    need to start it with a PHP open tag:

<span style="color: #006600;"> &lt;?php</span>

or

<span style="color: #006600;"> &lt;?</span>

And now we end our code with a closer tag:

<span style="color: #006600;">?&gt; </span>

Lets create a new file and name it "first.php". Type the code below (or copy    and past it) in to the file named "first.php" and upload it to your server:

<span style="color: #006600;"> &lt;?php
print "Hello World!";
?&gt; </span>

Now access the url page through the browser to see the out put. It should read:

Hello World!

Note that if you view the source html code from the browser application, all    php code is hidden. It was all parsed (processed) before the browser application    could view the page.
<strong>Structure</strong>

You can structure the PHP code all on one line if you prefer like this:

<span style="color: #006600;">&lt;?php print "Hello World!"; ?&gt;</span>

You can also use the short start tag " &lt;?" with out the "&lt;?php" like this:

<span style="color: #006600;">&lt;? print "Hello World!; ?&gt; </span>

You can also change the "print" function to "echo" or "return" functions and    achieve the same results like this:

<span style="color: #006600;">&lt;? echo "Hello World!"; ?&gt;</span>
or
<span style="color: #006600;"> &lt;? return "Hello World!"; ?&gt; </span>

You can also combine HTML and PHP all in one page like this:

<span style="color: #006600;"> <span style="color: #666666;">&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;newsourcemedia.com&lt;/title&gt;
&lt;META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;/head&gt;
&lt;BODY&gt;</span>
&lt;? return "Hello World!"; ?&gt;
<span style="color: #666666;">&lt;/body&gt;
&lt;/html&gt; </span>
</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">You can also use    more then on line for the string of data like this:</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; color: #006600;">&lt;?
print "Hello
World!";
?&gt;</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">or</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; color: #006600;">&lt;?
print "
Hello
World
";
?&gt; </span>

Tryout some of these above samples. You can also change the statement inside    the quotes if you like to see if all still goes well.
<strong>Understanding the Code
</strong>
Let take a look at how the code works. We already know from above that "&lt;?"    and "?&gt;" are the start and end PHP tags. Next we used three deferent    word: "print", "echo" and "return". These word    commands are built-in PHP <strong><em>Functions</em></strong> that outputs data (you'll    learn soon how to build your own functions).

A <strong><em>Function</em></strong> is a command that performs an action and is modified    by other data usually supplied to it. The data ( a collections of characters    or a "string") is usually always placed inside single or double quotes.    Most functions must have parentheses after their name like function( ). However    the three functions we have use above are exempted from that role.

Lastly, we used a semicolon ";". The semicolon tell PHP that this is the    end of the line of code and to execute this line of code.

Most programmers forget to end there code with the semicolon. You will find    that most of the reasons for your codes not working properly is that you forgot    as well.
<strong> Summary</strong>

<strong></strong>In this tutorial you learned how to use a text editor to create a PHP script,    how to name your PHP files, how to start and end blocks of code with start and    end tags, how to output data to the browser with functions, and how to combine    PHP and HTML codes.

This is just the tip of the iceberg so be sure to <a href="../../index.php?ref_main=PHP&amp;searchstring=Tutorials">click here to check out our other tutorials on PHP</a>.

<!--   Start of HTML Code   --->
<table border="1" cellspacing="0" cellpadding="4" width="250" bgcolor="#d70500" bordercolor="#840300"><form action="http://www.hotscripts.com/cgi-bin/rate.cgi" method="post">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong><span style="font-family: Verdana,Arial; color: #ffffff; font-size: xx-small;">If you like our  script, please rate it!</span></strong><input name="ID" type="hidden" value="25875" /> <input name="external" type="hidden" value="1" /></td>
</tr>
<tr>
<td><select name="rate" size="1"> <option selected="selected" value="5">Excellent!</option> <option value="4">Very Good</option> <option value="3">Good</option> <option value="2">Fair</option> <option value="1">Poor</option> </select><input name="submit" type="submit" value="Cast My Vote!" /></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</form></table>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-lesson-1-first-php-script/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Lesson 2 &#8211; Add Comments</title>
		<link>http://newsourcemedia.com/blog/php-lesson-2-add-comments/</link>
		<comments>http://newsourcemedia.com/blog/php-lesson-2-add-comments/#comments</comments>
		<pubDate>Mon, 02 May 2005 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[clean up]]></category>
		<category><![CDATA[comments.]]></category>
		<category><![CDATA[easy lesson]]></category>
		<category><![CDATA[first time]]></category>
		<category><![CDATA[new to php]]></category>
		<category><![CDATA[organize]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web page]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2005/05/01/php-lesson-2-add-comments/</guid>
		<description><![CDATA[You will save a lot of time and money if you just remember to write comments as you write your codes. Trust me, you will forget which code goes where and what it does. We all forget. This is a &#8230; <a href="http://newsourcemedia.com/blog/php-lesson-2-add-comments/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[You will save a lot of time and money if you just remember to write comments as you write your codes. Trust me, you will forget which code goes where and what it does. We all forget. This is a how-to on how to organize your scripts with different types of
<span id="more-256"></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"><strong>Introduction</strong></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">In this tutorial    you will learn how to organize your PHP script using comments. You may feel it’s    unnecessary to write comments in your code; however, comments can save you a    great deal of time and money plus help you and other programmers understand your code    for future revisions.</span>

If you have not read part one, please do and if you are not working on a php server, we recommend <a href="http://www.simplehost.com/cgi/clickthru.cgi?id=alexmcleaniii">SimpleHost.com</a> for only $7.50 with Unlimited Disk Space, Subdomains, and Emails Accounts.

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"><strong>
PHP Comment Examples</strong></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">For a single line    comment use "two forward slashes" (//) or a "hash sign"    (#) like this:

<span style="color: #ff9900;">// This is a single line comment.</span>

<span style="color: #ff9900;"># This is also a single line comment.
</span>
Multiple line comments start with a forward slash with an asterisk (/*) and    ends with an asterisk with a forward slash (*/) like this:

<span style="color: #ff9900;">/*
This is a multiple line comment.
Just remember that the asterisks are always placed on the inside of the combinations.
*/</span>
<strong><span style="font-family: Verdana;">Combining PHP with HTML Comment Tags</span></strong></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">PHP comments,    as well as PHP codes are not viewable in the browser window, nor will you find    them inside the browser's view HTML source code. In order to view comments in    the browser's view HTML source code, you must create comments using HTML comment    tags.</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">An HTML Comment    tag starts with a less-than sign, exclamation sign and a few dashes (&lt;!--)    and end with a few dashes with a greater-than sign (--&gt;). Here are examples    of combining PHP with HTML comments:

<span style="color: #009900;">&lt;?
echo “My name”;
?&gt;
<span style="color: #ff9900;">&lt;!-- this is an html comment --&gt;</span>
&lt;?
echo “is Alex!”
?&gt;</span>

<strong>Note:
</strong>In the code above I used three blocks of code. The beginning and last blocks    were PHP and the middle block was an HTML Comment.

You can also have PHP output the HTML comment like this:

<span style="color: #009900;">&lt;?
echo “My name &lt;!-- this is a html comment --&gt; is Alex!”;
?&gt;</span>

PHP will output this to the browser:

</span><span style="font-family: Courier New,Courier,mono;"> My name is Alex!</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif;">

The source html code view will look like this:

<span style="color: #ff00ff;">My name <span style="color: #ff9900;">&lt;!-- this is an html    comment --&gt;</span> is Alex!</span>
<strong>Summary</strong></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">
If you have any questions, please search or post a question to the forum. You    may also want to check out a few of the books listed below.

Books:
<a href="http://www.amazon.com/exec/obidos/ASIN/1861006918/newsourcemedi-20">Professional PHP4 Programming </a>
<a href="http://www.amazon.com/exec/obidos/ASIN/0672317842/newsourcemedi-20">PHP  and MySQL Web Development</a><a href="http://www.amazon.com/exec/obidos/ASIN/0672317842/newsourcemedi-20">
</a> </span>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-lesson-2-add-comments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Lesson 3 &#8211; Creating Functions</title>
		<link>http://newsourcemedia.com/blog/php-lesson-3-creating-functions/</link>
		<comments>http://newsourcemedia.com/blog/php-lesson-3-creating-functions/#comments</comments>
		<pubDate>Mon, 02 May 2005 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[creating functions.]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2005/05/01/php-lesson-3-creating-functions/</guid>
		<description><![CDATA[How to create Functions in PHP and also how to Pass Variables to Functions. Introduction: You will need to have a PHP web server for this tutorial. We recommend SimpleHost.com for only $7.50 with Unlimited Disk Space, Subdomains, and Emails &#8230; <a href="http://newsourcemedia.com/blog/php-lesson-3-creating-functions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to create Functions in PHP and also how to Pass Variables to Functions.
<span id="more-201"></span>
<span class="contitle">Introduction:</span>

You will need to have a PHP web server for this tutorial. We recommend <a href="http://www.simplehost.com/cgi/clickthru.cgi?id=alexmcleaniii">SimpleHost.com</a> for only $7.50 with Unlimited Disk Space, Subdomains, and Emails Accounts.

PHP has hundreds of predefined  functions (maybe thousands). This tutorial gives examples  on how to create your own php functions. There are two rules  I would like to share with you before we start.

<span class="contitle">Rule 1: </span>
Make sure your new function name does not exhist. You can  check PHP.net for a complete list of PHP predefined functions.

<span class="contitle">Rule 2: </span>
Do not declare/define the same function more than once inside the same file. You will get an error.

OK, let's create our first function. This function will display  a text advertisement. We will call this function ads().
<p class="contitle">Source Code</p>

<p class="sourceCODE">&lt;?php
// first define the function
function ads()
{
echo "Visit NewSourceMedia.com for free tutorials";
}
// now call the function ads() like so
ads();
?&gt;

Now you can display the same ad however many times you  want just by calling the function ads().
<p class="contitle">Passing Values to Functions:</p>

Let's say we want to randomly display three ads. We  could do this by placing three text ads inside our ads()  function and then passing a random value to it, to indicate  which ad to display. We can do this by using a parameter  variable inside the function. For example $n will be the  variable and this is how it is placed inside our ads function  like so "ads($n)". This variable holds a copy  of the value passed to it.

Now we need to set $n to a random number between 1 and  3. We can do this by using one of PHP pre-defined functions  called rand(). If you want a random number between 1 and  3 (inclusive), for example, use "rand (1, 3)".  To make this a little more clear, view the code below:
<p class="contitle">Source Code</p>
<p class="sourceCODE">&lt;?php</p>

// first define the function

function ads($n)
{

$a = "http://newsourcemedia.com";

if($n == 1)
echo "&lt;a href='$a'&gt;Visit NewSourceMedia.com for  free tutorials&lt;/a&gt;";

if($n == 2)
echo "&lt;a href='$a'&gt;NewSourceMedia.com for PHP  and much more!&lt;/a&gt;";

if($n == 3)
echo "&lt;a href='$a'&gt;PHP is Number One!&lt;/a&gt;"

} // end of function
<p class="sourceCODE">// define the random value for $n
$n = rand (1, 3);

// now call the function ads() with the value $n
ads($n);

?&gt;]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-lesson-3-creating-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array: Lesson Part 1</title>
		<link>http://newsourcemedia.com/blog/array-lesson-part-1/</link>
		<comments>http://newsourcemedia.com/blog/array-lesson-part-1/#comments</comments>
		<pubDate>Sat, 28 Feb 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[orgaize.]]></category>
		<category><![CDATA[php lesson]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/02/27/array-lesson-part-1/</guid>
		<description><![CDATA[Learn PHP arrays and how easy it is to store and organize complex data structures. Introduction: You may already know about PHP variables, and how unfortunately you can only store only one value at a time. But now lets move &#8230; <a href="http://newsourcemedia.com/blog/array-lesson-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Learn PHP arrays and how easy it is to store and organize complex data structures.
<span id="more-209"></span>
<p class="contitle"><strong>Introduction:</strong></p>

You may already know about PHP variables, and how unfortunately                        you can only store only one value at a time. But now lets move                        on to a new type of variable called an array. Arrays allow                       you to store as many values as you want inside it. It                        keeps track of the information by indexing the data by a                        number or a string. Think of a variable as a bottle of soda.                        And think of an array as a case of sodas, or a warehouse                        of sodas.
<span class="contitle"> <strong>Elements in an Array Example:</strong></span>

<span class="sourceCHART">Values: (“Bart”,                        “Sharon”, “Betty”)
Index Number: (0, 1, 2)
Which Element? (First, Second, Third)</span>

The index always starts as zero. This easy to forget,                        so if you did not get what you expected when outputting                        a value in an array, the chances are that you started counting                        at one instead of zero.

<span class="contitle"><strong>Creating Arrays Use the Array()                        Function:</strong>
</span>
<span class="sourceCODE">$states = array (“NY”,                        “PA”, “CA”)</span>

You can now access the second element by the index “1”:

<span class="sourceCODE">echo “$state[1]”;</span>

This will display as “<span class="sourceHTML">PA</span>”.
<span class="contitle"> <strong>Creating or Adding to Arrays with                        Array Identifier:</strong></span>
<p class="sourceCODE">$states[] = “NY”;
$states[] = “PA”;
$states[] = “CA”;

The values will be listed in the same line order as to                        when they where set. You can also place them in the order                        you want by using the index number placed inside the square                        brackets like so:
<p class="sourceCODE">$states[1] = “PA”;
$states[2] = “CA”;
$states[0] = “NY”;

When using the identifier with an index number to set the                        value, be sure never to set the index number too high. For                        example, if there are only 3 elements in an array and you                        want to add a new value to the end of the array, you must                        use the index number [3].

The safe way to achieve this would be not to use an index                        number and just leave the square brackets blank like so:
<p class="sourceCODE">$state = array(“NY”, “PA”,                        “CA”);
<span class="sourceCOMMENT">// add a new state to the end                        of the our array of states</span>
$state[] = “OH”;

<span class="sourceCODE">
</span><strong><span class="contitle">Conclusion:</span></strong>

This is just Part 1 of PHP Array Tutorials for developing                        your on web programs. Be sure to read our Part 2 "Complex                        Data Arrays" to help you master arrays and create more                        dynamic web applications.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/array-lesson-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Flexibility of PHP</title>
		<link>http://newsourcemedia.com/blog/the-flexibility-of-php/</link>
		<comments>http://newsourcemedia.com/blog/the-flexibility-of-php/#comments</comments>
		<pubDate>Tue, 02 Dec 2003 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[php functions]]></category>
		<category><![CDATA[phpcredits]]></category>
		<category><![CDATA[phpinfo]]></category>
		<category><![CDATA[server info]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2003/12/01/the-flexibility-of-php/</guid>
		<description><![CDATA[To find out more about the flexibility of PHP and what it can do for your website, then this is a must see, 3 chapter story. Take a look at this and then look at the wonders. The master flexibility &#8230; <a href="http://newsourcemedia.com/blog/the-flexibility-of-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[To find out more about the flexibility of PHP and what it can do for your website, then this is a must see, 3 chapter story. Take a look at this and then look at the wonders.
<span id="more-234"></span>

The master flexibility of PHP is unstoppable. If you already heard of PHP, then  you know what I am exactly talking about.

PHP can be used in a number of things, ranging from making photo albums that visitors  can upload photo from their computer or even creating a script to showing how  many users online, or even a Content Management System (CMS). PHP is a definite,  must learn language if you want the most ultimate performance in web designing  today.

But what exactly can fPHP flex out to be, well let's do a small test, now I know  you see this every where, even on here (New Source Media), but let's take one  diagnostic test, upload this to a blank Notepad document:

&lt;?php
phpcredits(CREDITS_ALL&lt;br&gt;);
phpinfo(&lt;br&gt;);
echo 'Your are running on ' . phpversion . ' version';
?&gt;

That will process out what I like to call, PHP Summary, which will show the credentials  of who made PHP, the latest PHP Information and the PHP version. If it does not  work, contact me cause it is compiled.

PHP also has a variety of other things, but just like with me, you have to learn,  to get more details, re-locate to http://www.php.net. Thanks and look for more  of my PHP tutorials.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/the-flexibility-of-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
