Prévia do material em texto
<p>Operators Constants Arithmetics a sensitive) Assignments constant(name) show const value Bitwise defined(name) check is defined Comparison Error control [@] Functions Execution Increase/Decrease [++var][var++] function var2 "default"...) Logical [and, &&] [xor] function check if function exists get defined _functions() show defined functions Array exec. function Type [instanceof] check Math functions Character type Check if only are present in text. absolute value ctype alphanumeric chars exp(23arg) calc. exponent of e alphabetic chars get modulo of division control chars (tab,esc...) base-10 logarithm digits natural logarithm visible chars & space values) find highest value lowercase chars min( values) find lowest value uppercase chars get value of pi printable chars exponent. expr. except space & alphanumeric square root blank spaces (tab, space, \n...) hexadecimal digit check finite value is check val. Predefined vars check Not a Number $GLOBALS base $ GET convert number between bases $ POST $ REQUEST convert to binary convert to decimal $ FILES dechex(2)dec) convert to hexadec. $ ENV convert to decimal $ SESSION convert to octal $ SERVER convert to decimal PHP SELF running script convert to radian CGI specification @rad2deg(Erad) convert to degree SERVER_ADDR Server IP address SERVER_NAME Server Hostname SERVER_SOFTWARE Server name & version show max rand value SERVER_PROTOCOL Server protocol Server data mt_getrandmax() but mt algorith. SERVER_ADMIN Admin mail address create rand int. SERVER_PORT Server Port but mt alg. SERVER_SIGNATURE Version and Virtual Host seed rand generator REQUEST_METHOD (GET/POST/PUT/HEAD) REQUEST_TIME timestamp init mt_srand(2)seed) but mt algorith. QUERY_STRING GET params generate pseudo-rand DOCUMENT_ ROOT main HTTP_ACCEPT MIME type round fractions up HTTP_ACCEPT_CHARSET Charset Client header round fractions down HTTP_ACCEPT_ENCODING Compress round decim. HTTP_ACCEPT_LANGUAGE Language HTTPCONNECTION Persistent connection ( HTTP_HOST Main domain server (no subdomain) sine HTTP_REFERER Client back webpage hyperbolic sine HTTP_USER_AGENT Client browser (header) arc sine HTTPS Secure HTTP protocol REMOTE ADDR Client IP inv. hyperbolic sine REMOTE HOST Client Hostname Client data cosine REMOTE PORT Client Port hyperbolic cosine SCRIPT FILENAME Running server script actually arc cosine PATH TRANSLATED - SCRIPT_FILENAME inv. hyperbolic cosine SCRIPT NAME Script path (relative to root) tangent REQUEST URI URI from request (similar to SCRIPT NAME) PHP_AUTH_DIGEST HTTP Digest Header (with Apache as module) hyperbolic tangent PHP_AUTH_USER Username in authorization arc tangent PHP_AUTH_PW Password in authorization inv. hyperbolic tangent AUTH_TYPE Authorization type arc tangent of 2 var arge Number of params calc. hypotenuse Array with GET params format SUNFUNCS RET STRING (0) Date & time SUNFUNCS_RET_TIMESTAMP(2) check if date is correct (leap inclusive) get info return current timestamp microtime return current timestamp (with microseconds) default_timezone get( return default timezone used timezoneid) set a default timezone date_parse(strtotime) return array with (day, month, year.. info gettimeofday(afloat) call command, return array or float format a GMT/UTC date/time format a local time/date as integer parse a strftime() time/date parse english datetime in timestamp get a timestamp GMT format a GTM/UTC time/date (with locale sets) format a local time/date (with locale sets) get local time (false key str, numeric array keys) get timestamp for a date twilight begin/end sunrise time sunset time</p>