home gear home donate
Search Results For

Libraries book

HTML Library CSS Library JavaScript Library PHP Library


PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous


Website Hosting Developer Q+A
Sprite Programming Mastery
Define String :-: Define Number

A string is any one or set of alphanumeric characters and spaces. A string may include letters, numbers, spaces, or symbols. There are several data types in PHP, and string is one of them. Here are the PHP data types again if you need to see them: Boolean, Integer, Floating Point Number, String, Array, Object, Resource, Null

When we create an HTML contact form for a website we might have name, email, phone number, and message fields. When the user types their information in and press submit, all of that information in all of those fields are interepreted as strings. When our PHP parse script picks up those field variables to email them to us, they are all strings. The name is a string, the email, the phone number, and finally the message, all are strings and all will be interpreted as string data when it comes time to parse it.

String Examples:
Learn HTML
"Hello World!";
// Mix of Letters, Spaces, and Symbols
$str2 "(555)555-5555"; // Mix of Numbers and Symbols
$str3 ""; // Mix of Letters and symbols
$str4 "3"; // Number... but if it is in quotes it is seen as string data type object
$str5 "a"; // Letter

A string is simply one or any set of alphanumeric characters, spaces, and symbols.


A number is anything that we would use for computational purposes or numeric representations that do not contain string type data, or any data that would make them anything but a number.

Number Examples:
Learn HTML
$num1 = 37; // Integer
$num2 = 2.75; // Floating point numbers
$num3 = -6; // Negative values
Home   •   Terms of Use   •   T-Shirts   •   RSS   •   Testimonials   •   Subscribe   •   Classroom Chalkboard   •   Developer Q+A   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties is a growing educational system packed with video and written material that you can access 24/7 100% free. The focus here in 2014 is spread between five technologies: HTML, CSS, JavaScript, PHP and MySQL. Learn programming theory, database interaction, web design, animation, graphics editing, vector art, 3D modeling, and much more. The educational experience here is a hybrid one offering both high quality video tutorials and code libraries that grow more robust every day. The code libraries are being assembled so that developers can discover all of the building blocks of their favorite languages. The libraries coupled with high quality video tutorials will take you deep down the rabbit hole very quickly. You can also ask questions and get free advice at