Browse a Listing
Top > PHP > Tips and Tutorials > Introduction to PHP
Popular Tags
Free Script links
Object orientated programming (OOP) is a commonly used term when discussing modern programming techniques. One of the things that makes humans stand out is the ability to categorise - we put objects into categories of similar type of function. For example, we have the category vechicle. Within this category, you have the different types of vehicle - car, bug, train, van. In the same bag, a llama is a type of animal. This analogy applies to programming - we create functions to do specific tasks and then group similar functions into classes. No only does this organise everything, but also allows a common access point for these similar functions.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In an earlier tutorial, I described how to define variables as numbers. Basically you chose a variable name, for this example lets chose ?$number?, and you chose a value, we?ll use 15. The code could then be written as shown below.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
The previous tutorial, which created an age verification machine, had a couple of gaps in the code which, sometimes, meant that it didn't react in the way it should have. There were two main holes which, is this tutorial, we are going to tidy up.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 2 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
The next question probably going through your head is, 'How is something true?'. Well there is a selection of 'operators' which create this part of the statement. Below is a list of the most popular operators used. It is by no means complete and I'm sure that is more out there!
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Before setting a variable it might help to know what one actually is. A variable is basically a piece of memory which has a name and holds a 'value'. Open up your favourite HTML/PHP text editor, and type the text below.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 4 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Functions are similar to variables in the sense that they hold information within them and can be executed once or unlimited times by a PHP script. PHP has many functions already created with a specific job or function a pre installed function we have alreay worked with in this tutorial is echo(). You can create your own function too.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 3 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In Picking Up Perl, Bradley Kuhn cites a saying from the Perl community which says, "Perl promotes laziness, impatience and hubris." He explains how lazy programmers don't want to write the same routines repeatedly so they design their code to be reusable as much as possible. Impatient programmers write efficient programs to do work for them and programmers with pride write clean, readable code and share it with others. The PHP Extension and Application Repository (PEAR) brings this philosophy to PHP
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 0 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In order to accomplish almost any programming task with PHP you'll be dealing with strings. To get the best out of PHP you must thoroughly understand the basic string functions available. In this tutorial we will lay down the foundations needed for a solid understanding of strings. As we examine a multitude of basic string functions, we will focus in on specific uses for each and show examples of how many of these functions can be used together. This tutorial will start with the very basic use of a string in PHP and build upon that base knowledge by showing you specific functions and how they can be used together
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
This tutorial shows you how to use two open source, cross-platform tools for creating a dynamic Web site: PHP and MySQL. When we are finished, you will know how dynamic sites work and how they serve the content, and you will be ready to serve your own dynamic content from your site.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 7 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
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.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR