Eternal Nightmare
March 29, 2024, 01:56:15 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Breaking News: We Are Growing Fast. Keep Up The Good Work Guys
 
  Home Help Search Arcade Staff List Login Register  

Variable/array/function definitions

Pages: [1]
  Print  
Author Topic: Variable/array/function definitions  (Read 229 times)
0 Members and 1 Guest are viewing this topic.
DzinestaR
Starter
*

OWned +0/-0
Offline Offline

My Mood: Inspired:
Posts: 18



WWW
« on: September 13, 2009, 03:03:58 pm »

This lesson I thought I would get a little technical (without getting TOO technical) with definitions of a few words you'll coming across regularly in these lessons.

What is a variable?
A variable is something that can hold a dynamic value.  You can think of a variable as a box and its contents as the variables value.  The stuff inside the box can be changed; stuff taken out and replaced by other stuff.  This is exactly how you should think of a variable, as something which can always change to your needs.  A variable has two parts, a name and a value.

What is an array?
An array is something that can hold several dynamic values.  Very much like a variable, think of an array as a BIG box which can hold several similar objects.  The stuff inside this big box can be changed; stuff taken out and replaced with other stuff or more stuff can be added to this big box.  If that's a little hard to picture, think of an array as simply a list of values where more values can be added or existing values can be modified or removed.  An array has two parts, a name and a value.

What is a function?
A function is exactly what its dictionary definition says: The action for which a person or thing is particularly fitted or employed.  A function is a set of code which does a particular task.  A function has three parts, a name, information you give it, and information it returns.

Those of you who are very eager to explore the PHP language should get yourselves familiar with the PHP documentation and API located at http://www.php.net/manual/en/.  This is the website where you can find all of PHP's built-in functions and features.  The site will also help you with basic syntax.  The great thing about using the online documentation at PHP's website is that there is a wealth of user comments for everything to help clear up misunderstandings you might have.

A few things you might want to read up on for the next lesson would be the following two sites:
http://www.php.net/manual/en/function.print.php
and
http://www.php.net/manual/en/function.echo.php
Report Spam   Logged

Share on Facebook Share on Twitter

xboi209
Newbie
*

OWned +0/-0
Offline Offline

Gender: Male
Posts: 6


« Reply #1 on: September 17, 2009, 01:35:19 am »

if this topic is about php array function and variable, then should of renamed the topic and put the word php in it so people don't get tricked thinking this is javascript.
Report Spam   Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy