SlideShare a Scribd company logo
1 of 1
Download to read offline
Arrays                                                                                                                Regex
array_intersect                                                                                                               ereg
  array_merge                                                                                                                 eregi
     array_pop          ^                Start of string                   Y     4 digit year                2005             ereg_replace
    array_push          $                End of string                     y     2 digit year                05               eregi_replace
 array_reverse          .                                                  F                                                  split
                                         Any single character                    Long month                  January
    array_walk                                                                                                                spliti
          count         (a|b)            a or b                           M      Short month                 Jan              preg_match
       in_array         (...)            Group section                    m      Month (leading zeros)       01 to 12         preg_match_all
                        [abc]            Item in range (a or b or c)       n     Month                       1 to 12          preg_replace
Date and Time           [^abc]                                            D                                                   preg_split
                                         Not in range (not a or b or c)          Short day name              Mon
           date
        mktime          s               White space                       l     Long day name               Monday           Sessions
      strtotime         a?               Zero or one of a                  d     Day (leading zeros)         01 to 31         session_destroy
           time         a*               Zero or more of a                 j     Day                         1 to 31          session_id
                        a+               One or more of a                                                                     session_start
    Filesystem
 clearstatcache         a{3}             Exactly 3 of a                    h     12 Hour (leading zeros)     01 to 12         Strings
               copy     a{3,}            3 or more of a                    g     12 Hour                     1 to 12          addslashes
             fclose     a{3,6}           Between 3 and 6 of a             H      24 Hour (leading zeros)     00 to 23         crypt
              fgets                                                      G                                                   echo
                                         Escape character                        24 Hour                     0 to 23
                 file                                                                                                         explode
       filemtime                                                           i     Minutes (leading zeros)     00 to 59         implode
           filesize     [:punct:]        Any punctuation symbol            s     Seconds (leading zeros)     00 to 59         md5
      file_exists       [:space:]        Any space character                                                                  nl2br
             fopen      [:blank:]                                         w                                                   sprintf
                                         Space or tab                            Day of week    1
                                                                                                             0 to 6
              fread                                                                                                           strip_tags
             fwrite                                                        z     Day of year                 0 to 365         stripslashes
             is_dir                                                       W      Week of year       2
                                                                                                             1 to 53          stristr
            is_file                                                        t     Days in month               28 to 31         strpos
          readfile                                                                                                            strrev
                        i                Case-insensitive                                                                     strstr
      Headers           s                Period matches newline            a                                 am or pm         strtolower
        header          m                ^ and $ match lines              A                                  AM or PM         strtoupper
  headers_sent          U                Ungreedy matching                B      Swatch Internet Time        000 to 999       str_replace
     setcookie                                                            S                                                   substr
                        e                Evaluate replacement                    Ordinal Suffix              st, nd, td, th
                                                                                                                              trim
              Mail      x                Pattern over several lines
              mail                                                         T     Timezone of machine         GMT              URLs
                                                                          Z      Timezone offset (seconds)                    rawurldecode
    Numbers                                                               O                                                   rawurlencode
                                                                                 Difference to GMT (hours)   +0200
           ceil                                                                                                               urldecode
         floor                                                             I     Daylight savings            1 or 0           urlencode
                        array_push ( array, element )
number_format                                                              L     Leap year                   1 or 0
        round           in_array ( needle, haystack )                                                                         Variables
                        explode ( separator, string )                                                                         empty
                                                                          U      Seconds since Epoch    3

Miscellaneous           split ( pattern, string )                                                                             is_array
        define                                                             c     ISO 8601 (PHP 5)                             is_int
                        preg_split ( pattern, string )
          eval                                                             r     RFC 2822                                     is_null
          exit          ereg ( pattern, string )                                                                              is_numeric
                        strpos ( haystack, needle )                       1. date("w"): 0 is Sunday, 6 is Saturday.           is_object
       Network          str_replace ( search, replace, string )                                                               isset
      fsockopen                                                                                                               serialize
                                                                          2. Week that overlaps two years belongs to
                                                                                                                              unserialize
  PHP Options                                                                year that contains most days of that
         ini_get                                                               week. Hence week number for 1st January        SuperGlobals
    ini_restore                                                                of a given year can return 53rd week if        $_ENV
         ini_set        r                Read                                                                                 $_GET
                                                                               week belongs to previous year.
        phpinfo         r+               Read and write, prepend                                                              $_POST
                                                                               date("W", mktime(0, 0, 0, 12, 28, $year))      $_COOKIE
                        w                Write, truncate
     Execution                                                                 always gives correct number of weeks in        $_SESSION
                        w+               Read and write, truncate
          exec                                                                 $year.                                         $_SERVER
                        a                Write, append                                                                        $_FILES
                        a+               Read and write, append                                                               $_REQUEST
                                                                          3. The Epoch was the 1st January 1970.              $GLOBALS



                                                                                         Available free from www.ILoveJackDaniels.com

More Related Content

What's hot

Parallel computing with Gpu
Parallel computing with GpuParallel computing with Gpu
Parallel computing with GpuRohit Khatana
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.netilakkiya
 
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2tamtam180
 
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...PROIDEA
 
TypeScriptをオススメする理由
TypeScriptをオススメする理由TypeScriptをオススメする理由
TypeScriptをオススメする理由Yusuke Naka
 
Android notification
Android notificationAndroid notification
Android notificationKrazy Koder
 
爆速クエリエンジン”Presto”を使いたくなる話
爆速クエリエンジン”Presto”を使いたくなる話爆速クエリエンジン”Presto”を使いたくなる話
爆速クエリエンジン”Presto”を使いたくなる話Kentaro Yoshida
 
JVMのGCアルゴリズムとチューニング
JVMのGCアルゴリズムとチューニングJVMのGCアルゴリズムとチューニング
JVMのGCアルゴリズムとチューニング佑哉 廣岡
 
Scheduling in distributed systems - Andrii Vozniuk
Scheduling in distributed systems - Andrii VozniukScheduling in distributed systems - Andrii Vozniuk
Scheduling in distributed systems - Andrii VozniukAndrii Vozniuk
 
Kubernetes 導入から始める DevOps について
Kubernetes 導入から始める DevOps についてKubernetes 導入から始める DevOps について
Kubernetes 導入から始める DevOps についてShigeru Tatsuta
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals Vrushali Lanjewar
 
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)NTT DATA Technology & Innovation
 
プログラミング言語の比較表
プログラミング言語の比較表プログラミング言語の比較表
プログラミング言語の比較表Kazunori Sakamoto
 
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)NTT DATA Technology & Innovation
 

What's hot (20)

Parallel computing with Gpu
Parallel computing with GpuParallel computing with Gpu
Parallel computing with Gpu
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.net
 
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2
Getting Started GraalVM / GraalVM超入門 #jjug_ccc #ccc_c2
 
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...
Sprytniejsze testowanie kodu java ze spock framework (zaawansowane techniki) ...
 
TypeScriptをオススメする理由
TypeScriptをオススメする理由TypeScriptをオススメする理由
TypeScriptをオススメする理由
 
And or graph
And or graphAnd or graph
And or graph
 
C# Private assembly
C# Private assemblyC# Private assembly
C# Private assembly
 
Android notification
Android notificationAndroid notification
Android notification
 
爆速クエリエンジン”Presto”を使いたくなる話
爆速クエリエンジン”Presto”を使いたくなる話爆速クエリエンジン”Presto”を使いたくなる話
爆速クエリエンジン”Presto”を使いたくなる話
 
JVMのGCアルゴリズムとチューニング
JVMのGCアルゴリズムとチューニングJVMのGCアルゴリズムとチューニング
JVMのGCアルゴリズムとチューニング
 
Scheduling in distributed systems - Andrii Vozniuk
Scheduling in distributed systems - Andrii VozniukScheduling in distributed systems - Andrii Vozniuk
Scheduling in distributed systems - Andrii Vozniuk
 
Kubernetes 導入から始める DevOps について
Kubernetes 導入から始める DevOps についてKubernetes 導入から始める DevOps について
Kubernetes 導入から始める DevOps について
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
 
PostgreSQLアーキテクチャ入門
PostgreSQLアーキテクチャ入門PostgreSQLアーキテクチャ入門
PostgreSQLアーキテクチャ入門
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals
 
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)
YugabyteDBを使ってみよう - part2 -(NewSQL/分散SQLデータベースよろず勉強会 #2 発表資料)
 
プログラミング言語の比較表
プログラミング言語の比較表プログラミング言語の比較表
プログラミング言語の比較表
 
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料)
 

More from Piyush Mittal

More from Piyush Mittal (20)

Power mock
Power mockPower mock
Power mock
 
Design pattern tutorial
Design pattern tutorialDesign pattern tutorial
Design pattern tutorial
 
Reflection
ReflectionReflection
Reflection
 
Gpu archi
Gpu archiGpu archi
Gpu archi
 
Cuda Architecture
Cuda ArchitectureCuda Architecture
Cuda Architecture
 
Intel open mp
Intel open mpIntel open mp
Intel open mp
 
Intro to parallel computing
Intro to parallel computingIntro to parallel computing
Intro to parallel computing
 
Cuda toolkit reference manual
Cuda toolkit reference manualCuda toolkit reference manual
Cuda toolkit reference manual
 
Matrix multiplication using CUDA
Matrix multiplication using CUDAMatrix multiplication using CUDA
Matrix multiplication using CUDA
 
Channel coding
Channel codingChannel coding
Channel coding
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
 
Java cheat sheet
Java cheat sheetJava cheat sheet
Java cheat sheet
 
Google app engine cheat sheet
Google app engine cheat sheetGoogle app engine cheat sheet
Google app engine cheat sheet
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
 
Vi cheat sheet
Vi cheat sheetVi cheat sheet
Vi cheat sheet
 
Css cheat sheet
Css cheat sheetCss cheat sheet
Css cheat sheet
 
Cpp cheat sheet
Cpp cheat sheetCpp cheat sheet
Cpp cheat sheet
 
Ubuntu cheat sheet
Ubuntu cheat sheetUbuntu cheat sheet
Ubuntu cheat sheet
 
oracle 9i cheat sheet
oracle 9i cheat sheetoracle 9i cheat sheet
oracle 9i cheat sheet
 
Open ssh cheet sheat
Open ssh cheet sheatOpen ssh cheet sheat
Open ssh cheet sheat
 

Recently uploaded

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Php cheat sheet

  • 1. Arrays Regex array_intersect ereg array_merge eregi array_pop ^ Start of string Y 4 digit year 2005 ereg_replace array_push $ End of string y 2 digit year 05 eregi_replace array_reverse . F split Any single character Long month January array_walk spliti count (a|b) a or b M Short month Jan preg_match in_array (...) Group section m Month (leading zeros) 01 to 12 preg_match_all [abc] Item in range (a or b or c) n Month 1 to 12 preg_replace Date and Time [^abc] D preg_split Not in range (not a or b or c) Short day name Mon date mktime s White space l Long day name Monday Sessions strtotime a? Zero or one of a d Day (leading zeros) 01 to 31 session_destroy time a* Zero or more of a j Day 1 to 31 session_id a+ One or more of a session_start Filesystem clearstatcache a{3} Exactly 3 of a h 12 Hour (leading zeros) 01 to 12 Strings copy a{3,} 3 or more of a g 12 Hour 1 to 12 addslashes fclose a{3,6} Between 3 and 6 of a H 24 Hour (leading zeros) 00 to 23 crypt fgets G echo Escape character 24 Hour 0 to 23 file explode filemtime i Minutes (leading zeros) 00 to 59 implode filesize [:punct:] Any punctuation symbol s Seconds (leading zeros) 00 to 59 md5 file_exists [:space:] Any space character nl2br fopen [:blank:] w sprintf Space or tab Day of week 1 0 to 6 fread strip_tags fwrite z Day of year 0 to 365 stripslashes is_dir W Week of year 2 1 to 53 stristr is_file t Days in month 28 to 31 strpos readfile strrev i Case-insensitive strstr Headers s Period matches newline a am or pm strtolower header m ^ and $ match lines A AM or PM strtoupper headers_sent U Ungreedy matching B Swatch Internet Time 000 to 999 str_replace setcookie S substr e Evaluate replacement Ordinal Suffix st, nd, td, th trim Mail x Pattern over several lines mail T Timezone of machine GMT URLs Z Timezone offset (seconds) rawurldecode Numbers O rawurlencode Difference to GMT (hours) +0200 ceil urldecode floor I Daylight savings 1 or 0 urlencode array_push ( array, element ) number_format L Leap year 1 or 0 round in_array ( needle, haystack ) Variables explode ( separator, string ) empty U Seconds since Epoch 3 Miscellaneous split ( pattern, string ) is_array define c ISO 8601 (PHP 5) is_int preg_split ( pattern, string ) eval r RFC 2822 is_null exit ereg ( pattern, string ) is_numeric strpos ( haystack, needle ) 1. date("w"): 0 is Sunday, 6 is Saturday. is_object Network str_replace ( search, replace, string ) isset fsockopen serialize 2. Week that overlaps two years belongs to unserialize PHP Options year that contains most days of that ini_get week. Hence week number for 1st January SuperGlobals ini_restore of a given year can return 53rd week if $_ENV ini_set r Read $_GET week belongs to previous year. phpinfo r+ Read and write, prepend $_POST date("W", mktime(0, 0, 0, 12, 28, $year)) $_COOKIE w Write, truncate Execution always gives correct number of weeks in $_SESSION w+ Read and write, truncate exec $year. $_SERVER a Write, append $_FILES a+ Read and write, append $_REQUEST 3. The Epoch was the 1st January 1970. $GLOBALS Available free from www.ILoveJackDaniels.com