EECS 1012 Lecture Notes - Lecture 3: Boolean Algebra, Hulk (Comics)
elden1340 and 38522 others unlocked
10
EECS 1012 Full Course Notes
Verified Note
10 documents
Document Summary
Server side basics: urls and web servers, also called server side scripting, used to make web pages dynamic, provide different content depending on context. Interface with other services: database, e-mail: authenticate users, process form information, at end. Php chars: \n=new line, \(cid:863) include quotations, \= insert backslash, print/echo= both print. Functions: rand();=generates random number: abs (n);=absolute value, max (x,y) =finds max number, pow(x,y) = power (number wanted to be multiplied, power, gettype() finds out what type a variable is. Casting: forces the change of a type (int) this changes to a integer. Index is the position: ex: a(cid:373)e=(cid:863)dea(cid:374)er(cid:863); print [0]; the output will be d. Interpreted strings: string with variables written directly inside double quotes will be inserted as the program runs, does not work with single quotes, ex: = ", "; print ; Control statements: ----------: boolean logic, a variable that holds only 2 possible values, true or false.