SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Linux İşletim Sistemi
Linux İşletim SistemiLinux İşletim Sistemi
Linux İşletim SistemiMurat KARA
 
Jvm internal
Jvm internalJvm internal
Jvm internalGo Tanaka
 
シンプルでシステマチックな Linux 性能分析方法
シンプルでシステマチックな Linux 性能分析方法シンプルでシステマチックな Linux 性能分析方法
シンプルでシステマチックな Linux 性能分析方法Yohei Azekatsu
 
分散仮想ストレージシステム紹介
分散仮想ストレージシステム紹介分散仮想ストレージシステム紹介
分散仮想ストレージシステム紹介OSSラボ株式会社
 
コンテナで始める柔軟な AWS Lambda 生活
コンテナで始める柔軟な AWS Lambda 生活コンテナで始める柔軟な AWS Lambda 生活
コンテナで始める柔軟な AWS Lambda 生活Drecom Co., Ltd.
 
サーバーレスで ガチ本番運用までやってるお話し
サーバーレスで ガチ本番運用までやってるお話しサーバーレスで ガチ本番運用までやってるお話し
サーバーレスで ガチ本番運用までやってるお話しAkira Nagata
 
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat ModelsDeep Learning JP
 
機械学習と深層学習入門
機械学習と深層学習入門機械学習と深層学習入門
機械学習と深層学習入門Yuta Takahashi
 
Sandbox Atlatma Teknikleri ve Öneriler
Sandbox Atlatma Teknikleri ve ÖnerilerSandbox Atlatma Teknikleri ve Öneriler
Sandbox Atlatma Teknikleri ve ÖnerilerBGA Cyber Security
 
開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDK開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDKNVIDIA Japan
 
Azure における強化学習への取り組み
Azure における強化学習への取り組みAzure における強化学習への取り組み
Azure における強化学習への取り組みKeita Onabuta
 
はじめてのElasticsearchクラスタ
はじめてのElasticsearchクラスタはじめてのElasticsearchクラスタ
はじめてのElasticsearchクラスタSatoyuki Tsukano
 
性能測定道 事始め編
性能測定道 事始め編性能測定道 事始め編
性能測定道 事始め編Yuto Hayamizu
 
WebSocketのキホン
WebSocketのキホンWebSocketのキホン
WebSocketのキホンYou_Kinjoh
 
P4によるデータプレーンプログラミングとユースケースのご紹介
P4によるデータプレーンプログラミングとユースケースのご紹介P4によるデータプレーンプログラミングとユースケースのご紹介
P4によるデータプレーンプログラミングとユースケースのご紹介Kumapone
 
PlaySQLAlchemy: SQLAlchemy入門
PlaySQLAlchemy: SQLAlchemy入門PlaySQLAlchemy: SQLAlchemy入門
PlaySQLAlchemy: SQLAlchemy入門泰 増田
 
【DL輪読会】Semi-Parametric Neural Image Synthesis
【DL輪読会】Semi-Parametric Neural Image Synthesis【DL輪読会】Semi-Parametric Neural Image Synthesis
【DL輪読会】Semi-Parametric Neural Image SynthesisDeep Learning JP
 

Was ist angesagt? (20)

Linux İşletim Sistemi
Linux İşletim SistemiLinux İşletim Sistemi
Linux İşletim Sistemi
 
Jvm internal
Jvm internalJvm internal
Jvm internal
 
シンプルでシステマチックな Linux 性能分析方法
シンプルでシステマチックな Linux 性能分析方法シンプルでシステマチックな Linux 性能分析方法
シンプルでシステマチックな Linux 性能分析方法
 
分散仮想ストレージシステム紹介
分散仮想ストレージシステム紹介分散仮想ストレージシステム紹介
分散仮想ストレージシステム紹介
 
コンテナで始める柔軟な AWS Lambda 生活
コンテナで始める柔軟な AWS Lambda 生活コンテナで始める柔軟な AWS Lambda 生活
コンテナで始める柔軟な AWS Lambda 生活
 
サーバーレスで ガチ本番運用までやってるお話し
サーバーレスで ガチ本番運用までやってるお話しサーバーレスで ガチ本番運用までやってるお話し
サーバーレスで ガチ本番運用までやってるお話し
 
AWS Black Belt Online Seminar Amazon Aurora
AWS Black Belt Online Seminar Amazon AuroraAWS Black Belt Online Seminar Amazon Aurora
AWS Black Belt Online Seminar Amazon Aurora
 
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
【DL輪読会】Llama 2: Open Foundation and Fine-Tuned Chat Models
 
RabbitMQ can scale out!!(jp ops-workshop-3)
RabbitMQ can scale out!!(jp ops-workshop-3)RabbitMQ can scale out!!(jp ops-workshop-3)
RabbitMQ can scale out!!(jp ops-workshop-3)
 
機械学習と深層学習入門
機械学習と深層学習入門機械学習と深層学習入門
機械学習と深層学習入門
 
Sandbox Atlatma Teknikleri ve Öneriler
Sandbox Atlatma Teknikleri ve ÖnerilerSandbox Atlatma Teknikleri ve Öneriler
Sandbox Atlatma Teknikleri ve Öneriler
 
開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDK開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDK
 
Azure における強化学習への取り組み
Azure における強化学習への取り組みAzure における強化学習への取り組み
Azure における強化学習への取り組み
 
はじめてのElasticsearchクラスタ
はじめてのElasticsearchクラスタはじめてのElasticsearchクラスタ
はじめてのElasticsearchクラスタ
 
性能測定道 事始め編
性能測定道 事始め編性能測定道 事始め編
性能測定道 事始め編
 
WebSocketのキホン
WebSocketのキホンWebSocketのキホン
WebSocketのキホン
 
P4によるデータプレーンプログラミングとユースケースのご紹介
P4によるデータプレーンプログラミングとユースケースのご紹介P4によるデータプレーンプログラミングとユースケースのご紹介
P4によるデータプレーンプログラミングとユースケースのご紹介
 
NETCONF YANG tutorial
NETCONF YANG tutorialNETCONF YANG tutorial
NETCONF YANG tutorial
 
PlaySQLAlchemy: SQLAlchemy入門
PlaySQLAlchemy: SQLAlchemy入門PlaySQLAlchemy: SQLAlchemy入門
PlaySQLAlchemy: SQLAlchemy入門
 
【DL輪読会】Semi-Parametric Neural Image Synthesis
【DL輪読会】Semi-Parametric Neural Image Synthesis【DL輪読会】Semi-Parametric Neural Image Synthesis
【DL輪読会】Semi-Parametric Neural Image Synthesis
 

Mehr von Piyush Mittal

Mehr von 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
 

Kürzlich hochgeladen

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 

Kürzlich hochgeladen (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 

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