Welcome to Truecodeing.tk plz join are other site TrueGamerz.tk
Site admin Dirty_Tazer & Bman24 & Snick458 & Always_Jonezen have any questions ask a admin or a mod
Welcome to Truecodeing.tk plz join are other site TrueGamerz.tk
Site admin Dirty_Tazer & Bman24 & Snick458 & Always_Jonezen have any questions ask a admin or a mod
Would you like to react to this message? Create an account in a few clicks or log in to continue.


TrueGamerz.tk
 
HomeHomeGallerySearchLatest imagesRegisterLog in
We have a new site that's a vbulliten join TrueGamerz.Tk
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
Xx...Tazer...xX (1239)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
bman24 (247)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
Always_Jonezen (155)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
Navy-Hawk (121)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
qwerty (91)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
CjZitical (91)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
snick458 (80)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
MAG (77)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
»Air Bourne« (76)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
.-jZeIvIiiX-. (73)
QUICK REFERENCES OF BASIC PHP I_vote_lcapQUICK REFERENCES OF BASIC PHP I_voting_barQUICK REFERENCES OF BASIC PHP I_vote_rcap 
Latest topics
» Socom FTB3 USA Gamesave 100% Complete
QUICK REFERENCES OF BASIC PHP I_icon_minitimeSun Dec 29, 2013 7:31 pm by pandemic44

» Making a scantime crypter - VB.net
QUICK REFERENCES OF BASIC PHP I_icon_minitimeWed Aug 15, 2012 7:01 am by shayl

» VERY IMPORTANT !!!!!!!!!!
QUICK REFERENCES OF BASIC PHP I_icon_minitimeFri Mar 09, 2012 9:34 pm by kfederigan

» my FTB3 gamesave request
QUICK REFERENCES OF BASIC PHP I_icon_minitimeTue Oct 25, 2011 2:39 pm by The.S.Man

» How To Install Pspsdk (PRX Compiler)
QUICK REFERENCES OF BASIC PHP I_icon_minitimeThu Aug 04, 2011 3:47 pm by xUnD3ADxMARIN3x

» Hope's
QUICK REFERENCES OF BASIC PHP I_icon_minitimeFri Jul 15, 2011 3:51 pm by nemopsp

» Offline Guns Online No Need Gamesaves!
QUICK REFERENCES OF BASIC PHP I_icon_minitimeWed Apr 20, 2011 3:08 pm by jeshuag

» Need Game Save Please
QUICK REFERENCES OF BASIC PHP I_icon_minitimeMon Apr 18, 2011 8:15 am by guy mandude

» my gsave request
QUICK REFERENCES OF BASIC PHP I_icon_minitimeSun Apr 10, 2011 12:57 pm by Killin

Who is online?
In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests

None

Most users ever online was 120 on Tue May 14, 2019 3:05 pm
Statistics
We have 826 registered users
The newest registered user is netanter

Our users have posted a total of 3902 messages in 2169 subjects
Poll
Do you like too shop online??
Yes
QUICK REFERENCES OF BASIC PHP I_vote_lcap25%QUICK REFERENCES OF BASIC PHP I_vote_rcap
 25% [ 14 ]
no
QUICK REFERENCES OF BASIC PHP I_vote_lcap25%QUICK REFERENCES OF BASIC PHP I_vote_rcap
 25% [ 14 ]
Don't have credit card
QUICK REFERENCES OF BASIC PHP I_vote_lcap51%QUICK REFERENCES OF BASIC PHP I_vote_rcap
 51% [ 29 ]
Total Votes : 57
HITS
HTML Hit Counter
Web Counter
facebook
truecodeing

truecodeing

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
May 2024
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
262728293031 
CalendarCalendar
Search
 
 

Display results as :
 
Rechercher Advanced Search
Affiliates
 
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of Truecodeing on your social bookmarking website

Bookmark and share the address of on your social bookmarking website
Music playlist

MusicPlaylist
Music Playlist at MixPod.com

 

 QUICK REFERENCES OF BASIC PHP

Go down 
AuthorMessage
Xx...Tazer...xX
Owner
Owner
Xx...Tazer...xX


Posts : 1239
T®ue Points : 1102678
T®ue Reputation : 40
Join date : 2009-09-02
Age : 31
Location : Chicago,Illinois

QUICK REFERENCES OF BASIC PHP Empty
PostSubject: QUICK REFERENCES OF BASIC PHP   QUICK REFERENCES OF BASIC PHP I_icon_minitimeSun Jul 11, 2010 7:25 pm

and today I will show you guys different basic commands on PHP. This also have syntax and information for commonly used tasks, syntax, and more. This information maybe useful to support your Computing techniques in PHP, also I will post the "Quick References Of Advance PHP". I hope these references will be helpful for you and if you had anymore questions please feel free to ask. Also comments are necessary as well. And while I am posting different commands, I give you guys directions in order to use that command.

OK let's get started.....

The Basic Commands of PHP

In this part of the topic, here are the following I will references I will show you:

* Data Types
* Variable Declarations
* Declare Array
* Initialize Array
* Common Array Functions
* Comments
* Arithmetic Operators
* Relational Operators
* Logical Operators
* Assignment Operators
* String Manipulations
* Cookies
* Sessions
* Error Handling
* Super Globals
* If Else
* Inline If (Ternary)
* For Loop
* For Each Loop
* While Loop
* Do-While Loop
* Switch
* Function Structure
* Class Structure
* Declare and Use Class

Data Types:
integer, float, boolean, string, array, object, resource, NULL

Variable Declarations:
$variablename = ;
$anothervariable =& $variablename; (Assign by Reference)

Declare Array:
$arrayname = array();

Initialize Array:
$arrayname = array(, , );
$arrayname = array( => , => ); (Define Keys)
$multiarray = array( => array(,)); (Multi-dimensional)

Common Array Functions:
sort(); (Sort array assigns new keys)
asort(); (Sort array maintain keys)
rsort(); (Sort array in reverse, new keys)
arsort(); (Sort array in reverse, maintain keys)
count(); (Count elements)
count(,COUNT_RECURSIVE); (Count multidimensional array)
array_push(,); (Push item onto end of array)
array_pop(); (Pop item off end of array)

Comments:
// Comment text
/* Multi-line comment text */
# Comment

Arithmetic Operators:
+ (Addition), - (Subtraction), * (Multiplication), / (Division), % (Modulus)

Relational Operators:
== (Equal), === (Equal with type comparison), != (Not equal), <> (Not equal), !== (Not Equal
with type comparison), < (Less than), > (Greater than), <= (Less than or equal to), >=(Greater than or equal to)

Logical Operators:
! (logical NOT), && (logical AND), || (logical OR), xor (logical XOR)

Assignment Operators:
= (Assign), += (Addition), -= (Subtraction), *= (Multiplication), /= (Division), .=
(Concatenation), %= (Modulus), &= (And), |= (Or), ^= (Exclusive Or), <<= (Left Shift), >>=
(Right Shift)

String Concatenation:
. (Period)

String Manipulation:
substr(,,[]);
strlen();
trim();
ltrim(); // Trim left
rtrim(); // Trim right
strtolower();
strtoupper();
str_replace(,,,[]);
strpos(, );
strcmp(,); (Binary safe string comparison)
strcasecmp(,); (Binary safe case-insensitive comparison)
explode(,,[]); (Break string into array)
implode(,); (Join array into string separated by delim)

Cookies:
setcookie (, [],[]);
$_COOKIE['cookiename']; (Returns value of cookie)

Sessions:
session_start(); (Create session)
$_SESSION['key_name'] = value; (Set session variable)
$variablename = $_SESSION['key_name']; (Retrieve value from session variable)
session_destroy(); (Destroy session)

Error Handling:
Code: [Select]
try {
;
}
catch ( $exception_name)
{
;
}

Super Global:
$GLOBALS (Access all global variables in script)
$_SERVER (Access web server variables)
$_GET (Values passed to script through URL)
$_POST (Values passed to script through HTTP Post)
$_COOKIE (Values passed by user cookie)
$_FILES (Values passed by HTTP Post File Uploads)
$_ENV (Values passed to script via the environment)
$_REQUEST (Values passed by URL, HTTP Post, or user Cookies)
$_SESSION (Values passed through user's session

If Else:
Code: [Select]
if ()
{ ; }
elseif ()
{ ; }
else
{ ; }

Inline If (Ternary):
? true : false;

For Loop:
Code: [Select]
for (;;)
{
;
}

For Each Loop:
Code: [Select]
foreach ( as [ | => ])
{
;
[break];
[continue];
}

While Loop:
Code: [Select]
while ()
{
;
}

Do-While Loop:
Code: [Select]
do
{
;
} while ();

Switch:
Code: [Select]
switch ()
{
case :
;
[break;]
case :
;
[break;]
default:
;
}

Function Structure:
Code: [Select]
function ([])
{
;
[return ;]
}

Class Structure:
Code: [Select]
class []
{
[var | ] [];
[] function ([])
{
;
}
}
* Modifiers are implemented in PHP5

Declare and Use Class:
$variable = new class_name();
$variable->function_name();
class_name::function_name(); (Static call)

Thanks for reading and I hope you learn something

Credits:_-_EVIL-LOCO_-_
Back to top Go down
https://truecodeing.forumotion.net
 
QUICK REFERENCES OF BASIC PHP
Back to top 
Page 1 of 1
 Similar topics
-
» Making A WebBrowser IN Visual Basic 2008
» QUICK REFERENCES OF ADVANCED PHP

Permissions in this forum:You cannot reply to topics in this forum
 :: Computer section :: Visual basic :: PHP-
Jump to:  
Create a forum on Forumotion | ©phpBB | Free forum support | Report an abuse | Forumotion.com