SYST10199 Chapter Notes - Chapter 2: Floor And Ceiling Functions, Dollar Sign, Hypertext

132 views2 pages

Document Summary

Php is a loosely typed language because you don"t have to tell it what data type to hold. Variables are converted to their appropriate data type based on their values. There are 8 data types; integers, string,boolean, null, string, arrays, objects, resources. Resources are variables that hold values external to php, such as database connections. To create an actual dollar sign in php type $, or an actual backslash type \. The dot(. ) operator joins two string values together. 4 scope types for php variables are local, global, static, and function parameters. Function parameters are functions assigned to a variable. Static values do not lose thier value when a function is exited, unlike local and global variables. =strpos, , @ ; //is there an @ sign in the email variable if(===false){ Echo @sign found ;//echo means print on the console. =substr(,0,8); //returns the first 8 characters of username starting at pos 0.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents