موقع Technological Box يقدم لك كل ما هو جديد فى عالم التكنولوجيا، ونساعدك فى تعلم اللغات المختلفة مثل الانجليزية والفرنسية وغيرها من اللغات الأخرى مع أقوى الدورات والكورسات بشكل إحترافى مجانى، كذلك نوفر لك أقوى الدورات والكورسات فى تعلم البرمجة وغير ذلك من الأمور التى يمكنها أن تساعدك فى تطوير نفسك والإرتقاء بمهاراتك، معنا تعلم كل ما هو جديد من الصفر مجانًا، نوفر لك كل المصادر، ونساعدك على متابعة كل ما هو جديد فى أخبار التكتولوجيا بمجالاتها المختلفة. ويمكنك متابعتنا على صفحتنا فى فيس بوك والتواصل بشكل مباشر من خلال Technological Box على فيس بوك، وكذلك يمكنك ترك اى تعليق تريده على موضوعاتنا أو إقتراح ليتم مناقشته والتواصل معك وتنفيذه تكنولجكال بوكس تتمنى لكم قضاء وقتًا ممتعًا على موقعنا وتلبية ما تبحثوا عنه. ==================================== ==================================== ==================================== ==================================== ==================================== ==================================== ====================================

مرجع كامل لحفظ اكواد لغة PHP بسهولة مجانا

الانترنت , Comments Disabled PHP Cheat Sheet

لغة ال PHP من اهم واكثر اللغات التي يرغب عدد كبير جدا من المستخدمين تعلمها في الوقت الراهن نظرا للاهمية التي تمتاز بها هذه اللغة وقد اشرنا مسبقا عن عدة حقائق هو هذه اللغة ستفيدك كثيرا يمكنك الاطلاع عليها من هذه المقالة 15 حقيقة شيقة عن PHP يجب ان يعلمها كل مطور ومبرمج ولكن اللغه بها العدد من الاكواد والمهام والوظائف التي تقوم بها ولذلك فان الكثير ينسي اكواد اللغة ويجد صعوبة في حفظها وتذكرها ولذلك فاننا اليوم سنتعرف علي مرجع لحفظ اكواد اللغة بسهولة وتم انشاء هذا المرجع بواسطة DaveChild من موقع Cheatography.com .

1- PHP array Functions

array_diff (arr1, arr2 ...)
 
array_filter (arr, function)

array_flip (arr)

array_intersect (arr1, arr2 ...)

array_merge (arr1, arr2 ...)

array_pop (arr)

array_push (arr, var1, var2 ...)

array_reverse (arr)

array_search (needle, arr)

array_walk (arr, function)

count (count)

in_array (needle, haystack)

2- PHP String Functions

crypt (str, salt)

explode (sep, str)

implode (glue, arr)

nl2br (str)

sprintf (frmt, args)

strip_tags (str, allowed_tags)

str_replace (search, replace, str)

strpos (str, needle)

strrev (str)

strstr (str, needle)

strtolower (str)

strtoupper (str)

substr (string, start, len)

3- PHP FileSyestem Functions

clearstatcache ()

copy (source, dest)

fclose (handle)

fgets (handle, len)

file (file)

filemtime (file)

filesize (file)

file_exist (file)

fopen (file, mode)

fread (handle, len)

fwrite (handle, str)

readfile (file)

4- PHP Date And Time Functions

checkdate (month, day, year)

date (format, timestamp)

getdate (timestamp)

mktime (hr, min, sec, month, day, yr)

strftime (formatstring, timestamp)

strtotime (str)

time ()

5- PHP Regular Expressions Functions

ereg (pattern, str)

split (pattern, str)

ereg_replace (pattern, replace, str)

preg_grep (patter, arr)

preg_match (pattern, str)

preg_match_all (pattern, str, srr)

preg_replace (patter, replace, str)

preg_split (patter, str)

6- Regular Expressions Syntax

^       Start of string

$       End of string

.       Any single character

(a|b)   a or b

(...)   Group section 

[abc]   In range (a, b or c)

[^abc]  Not in range

s       White space

a?      Zero or one of a

a*      Zero or more of a

a*?     Zero or more, ungreedy

a+      One or more of a

a+?     One or more, ungreedy

a{3}    Exactly 3 of a

a{3,}   3 or more of a

a{,6}   Up to 6 of a

a{3,6}  3 to 6 of a

a{3,6}? 3 to 6 of a, ungreedy


 	
Escape character


[:punct:] Any punctu­ation symbol

[:space:] Any space character

[:blank:] Space or tab

7- Pattern Modifiers

g     Global match

i *   Case-i­nse­nsitive

m *   Multiple lines

s *   Treat string as single line

x *   Allow comments and whitespace in pattern

e *   Evaluate replac­ement

U *   Ungreedy pattern

* PCRE modifier

8- PHP fopen() modes

r     Read

r+    Read and write, prepend

w     Write, truncate

w+    Read and write, truncate

a     Write, append

a+    Read and write, append

9- PHP Date Formating

Y  4 digit year (2008)

y  2 digit year (08)

F  Long month (January)

M  Short month (Jan)

m  Month  (01 to 12)

n  Month (1 to 12)

D  Short day name (Mon)

l  Long day name (Monday) (lowercase L)
 
d  Day  (01 to 31) 

j  Day (1 to 31)  



h  12 Hour  (01 to 12)

g  12 Hour (1 to 12)

H  24 Hour  (00 to 23)

G  24 Hour (0 to 23)

i  Minutes  (00 to 59)

s  Seconds  (00 to 59)


 
w  Day of week ¹ (0 to 6)

z  Day of year (0 to 365)

W  Week of year ² (1 to 53)

t  Days in month (28 to 31)


 

a  am or pm

A  AM or PM

B  Swatch Internet Time (000 to 999)

S  Ordinal Suffix (st, nd, rd, th)



 

T  Timezone of machine (GMT)

Z  Timezone offset (seconds)

O  GMT offset (hours) (+0200)

I  Daylight saving (1 or 0)

L  Leap year (1 or 0)
 
U  Seconds since Epoch ³

c  ISO 8601 (PHP 5) (20080731T­18301301:00)

r  RFC 2822 (Thu, 31 Jul 2008 18:30:13 +0100)

ويمكنك تنزيل المرجع كاملا للتسهيل عليك من هنا .