PHP Developer''''s Dictionary- P103 ppsx

5 166 0
PHP Developer''''s Dictionary- P103 ppsx

Đang tải... (xem toàn văn)

Thông tin tài liệu

PHP Developer’s Dictionary IT-SC book 510 frenchtojd() Syntax int frenchtojd(int month , int date , int year ) Description The frenchtojd() function converts a date, specified by month/date/year , from the French Republican calendar to a Julian day count. This converts dates only in years 1 through 14, which are the Gregorian dates from September 22, 1792 through September 22, 1806. gregoriantojd() Syntax int gregoriantojd(int month, int date, int year) Description The gregoriantojd() function converts a date, specified by month/date/year , from the Gregorian calendar to a Julian day count. This converts dates only from the Gregorian calendar 4714 B.C. to 9999 A.D. jddayofweek() Syntax mixed jddayofweek(int julian_date, int mode) Description The jddayofweek() function returns the Julian day count day of week, given the julian_date . Depending on the mode passed, this returns either an integer or string value. Possible mode values are shown in Table 11.9 . Table 11.9. mode Values Mode Description 0 Returns the day number as an integer. For example, 0 is Sunday, 1 is Monday, and 2 is Tuesday. PHP Developer’s Dictionary IT-SC book 511 1 Returns a string containing the day of week, such as Monday , Tuesday , or Wednesday. 2 Returns a string containing the abbreviated day of week, such as Mon, Tues, or Wed. jdmonthname() Syntax string jdmonthname(int julian_date, int mode) Description The jdmonthname() function takes a julian_date , and based on the mode , returns the name of the month in which the date falls. Possible mode values are shown in Table 11.10 . Table 11.10. mode Values Mode Description 0 Gregorian—abbreviated 1 Gregorian 2 Julian—abbreviated 3 Julian 4 Jewish 5 French Republican jdtofrench() Syntax string jdtofrench(int month, int date int year) Description The jdtofrench() function converts a Julian day count date, defined by month, date , and year , to the French Republican calendar. jdtogregorian() Syntax string jdtogregorian(int julian_date) PHP Developer’s Dictionary IT-SC book 512 Description The jdtogregorian() function converts a julian_date to a Gregorian date in the format of month/day/year. jdtojewish() Syntax string jdtojewish(int julian_date) Description The jdtojewish() function converts a julian_date to a Jewish calendar date. jdtojulian() Syntax string jdtojulian(int julian_date) Description The jdtojulian() function formats a julian_date to that of month/day/year. jdtounix() Syntax int jdtounix(int julian_date) Description The jdtounix() function, which was added in PHP 4, returns a UNIX-formatted date stamp of the passed julian_date . If the date falls outside of the UNIX supported range (1970 to 2037), 0 is returned. jewishtojd() PHP Developer’s Dictionary IT-SC book 513 Syntax int jewishtojd(int month, int day, int year) Description The jewishtojd() function converts a date in the Jewish calendar, defined by month, date , and year , to Julian date count. juliantojd() Syntax int juliantojd(int month, int day, int year) Description The juliantojd() function converts a Julian calendar date, defined by month, date , and year , to Julian day count. unixtojd() Syntax int unixtojd([int time_stamp]) Description The unixtojd() function, which was added in PHP 4, converts a UNIX time_stamp to Julian date count. Compression The set of compression functions uses functions of the zlib, which was written by Jean-loup Gailly and Mark Adler. The compression functions allow your script to read and write gzip (.gz) compressed files. You must have zlib version 1.0.9 or greater to use this module. gzclose() Syntax PHP Developer’s Dictionary IT-SC book 514 int gzclose(int gz_pointer) Description The gzclose() function closes an opened gz_pointer , or file, that was previously opened using gzopen(). If the function is successful, 1 is returned. gzcompress() Syntax string gzcompress(string data [, int level]) Description The gzcompress() function, which was added in PHP 4.0.1, returns a compressed file containing data . The level of compression can also be passed to this function, where it is a number from 1 to 9 , with 9 asking for maximum compression. gzeof() Syntax int gzeof(int gz_pointer) Description The gzeof() function returns 1 if the gz_pointer is at the end of the file (EOF) or on error. gzfile() Syntax array gzfile(string gz_file [, int include_path]) Description . added in PHP 4, returns a UNIX-formatted date stamp of the passed julian_date . If the date falls outside of the UNIX supported range (1970 to 2037), 0 is returned. jewishtojd() PHP Developer’s. the day number as an integer. For example, 0 is Sunday, 1 is Monday, and 2 is Tuesday. PHP Developer’s Dictionary IT-SC book 511 1 Returns a string containing the day of week, such. French Republican calendar. jdtogregorian() Syntax string jdtogregorian(int julian_date) PHP Developer’s Dictionary IT-SC book 512 Description The jdtogregorian() function converts

Ngày đăng: 07/07/2014, 05:20

Mục lục

  • PHP Developer's Dictionary

  • Acknowledgments

    • Tell Us What You Think!

    • Introduction

      • Who Should Buy This Book?

      • Organization of the Chapters

      • Chapter 1. Basic PHP Background and History

        • Advantages of PHP 4

        • Installation

          • PHP Installation General Overview

          • Types, Variables, and Constants

          • Operators and Mathematical Functions

            • Expressions and Operators

            • Functions, Classes, and Objects

              • Functions

              • Chapter 2. Generating HTML

                • Generating Dynamic Content

                  • Defining Dynamic Content

                  • Using Request Variables to Generate Content

                  • Using the Environment to Generate Content

                  • Working with the Filesystem

                    • Directory Functions

                    • Working with Email

                      • Email Overview

                      • Calendar and Date Functions

                        • Overview of Time and Date Functions

                        • Chapter 3. Database Access

                          • Working with Connections and Data Sources

                            • Setting Up the Database

                            • Using PostgreSQL and PHP

                              • PostgreSQL Overview

                              • Connecting Postgres and PHP

                              • Select, Insert, Update, and Delete Queries

                                • Insert Queries

                                • Select Queries with PHP

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan