Loops are another important factor in PHP and all programming languages. They can be used for a multitude of different things, including but not limited to skipping through arrays, searching for data, etc. The structure of a while loop is similar to the basic structure of if statements, which was explained in a tutorial earlier. The while loop structure is as follows: while a condition is true, do something. Please take a look at the below code. Read More...
Arrays are an excellent way to use a single variable to hold multiple strands of related information. If you have a multiple strands of related information that you'd like to have together, arrays are the way to go. They allow you to set multiple peices of information to one variable and output them based on a numerical pointer. What I've just said may sound confusing, however when you see the code below it'll all seem a lot easier.
Read More...
PHP's inclusion functions are very useful for keeping your script neat and tidy. Using the PHP include() function, we can include remote files on one page. In fact, this very page is using includes to include the tutorial text!
Read More...
Although not a vital part of PHP, comments can be very useful for organizing your code and helping you remember small bits about certain peices of code in your script. It's hard to explain what comments are in any other way than saying that comments are comments. Rather than trying to explain, I've coded an example below.
Read More...
Operators in PHP are a useful way to use mathematics on variables. Whether you want to add, subtract, multiply, divide, or do any other mathematical equation involving a variable or variables, operators are the way to go. The PHP operators are generally the same as mathematical operators which makes them very easy to learn. Below shows examples of how to use basic operators with variables. Read More...
When learning PHP, most people get introduced to the PHP functions with the most basic of all functions -- the echo() function. The echo() function tells PHP to echo things into the browser's viewing area. You can pass either variables or raw text to the echo function. Since we learned about PHP variables in the latter tutorial, I'll start off by demonstrating how you can echo the information stored in variables using the echo() function. See the code below. Read More...
Using variables in PHP is done in every single script, and is extremely basic PHP knowledge. If you have experience in any other programming languages, you'll know that all languages use variables. Variables are basically peices of code that hold information. Read More...
When starting out with PHP, the obvious, and most important thing you'll need to know is how to designate the area where the server's PHP parser will start reading your code. As with most web page, PHP is used in conjunction with HTML. The HTML and PHP parser on your server translates these codes differently, so you need to show the PHP parser where to start, and end, reading your PHP code.
Read More...
|
jdbc tutorial teaching jdbc programming using java jdbc odbc ... Java application calls the JDBC library. JDBC loads a driver which talks to the database. ...
| Read More...
here are some C++ Programming Tips and Tricks ..are lots of basic optimizations that can give big speed increases to your C++ programs. Read More...
|