oldskool
Oldie but a goodie
- Messages
- 1,760
- Location
- Maine, USA
IDK, but "Shebop" was a Cindi Lauper one
Common PHP Operators(remove square brackets):
[++]-----increments integer variable
[--]-----decrements integer variable
[==]-----does equal
[!=]-----does not equal
[> ]-----greater than
[>=]-----greater than or equal to
[< ]-----less than
[<=]-----less than or equal to
[||]-----or
[&&]-----and
[.=]-----append
example:
$hello = "Hello ";
$world = "World!";
$hello .= $world;
hello variable now equals "Hello World!"
[+=]-----add/equals
example:
$int = 2;
$int += 8;
int variable now equals 10, the same as $int = 2 + 8;
will update with more at some later point
2009? If I didn't know any better I would say that I must be getting pretty old.
Anyway, I'm looking to apply some CPR here, can anyone come up with a really nice definition for any of these?
class
object
framework
library
interface
exception
pointer
stack
queue
int x = 4. //create variable
int *ptrY; //create pointer
ptrY = x; //assign pointer to variable x's memory space
cout << ptrY << endl; //prints hex address of ptrY and x, e.g. 0xc444
cout << *ptrY << endl; //prints value of x; will print 4
*ptrY = 6; //dereference ptrY, and assign value of 6; overwrites value stored in x
cout << *ptrY << endl; //print value of ptrY; i.e. 6
cout << x << endl; //print value of x, i.e. 6