PHP 4

[ PHP ]

(!!! Teleportom!!!)
: fopen, msql_num_fields, socket_write ...


I.

PHP T_SR. PHP : "Parse error: unexpected T_SR, expecting ',' or ';' in script.php on line 10."

, T_SR >>. , , , PHP- .

I-1. /Tokens
 
T_AND_EQUAL&=
T_ARRAYarray() array(),
T_ARRAY_CAST(array)
T_ASas foreach
T_BAD_CHARACTER- ASCII 32, \t (0x09), \n (0x0a) \r (0x0d)
T_BOOLEAN_AND&&
T_BOOLEAN_OR||
T_BOOL_CAST(bool) (boolean)
T_BREAKbreak; break
T_CASEcase switch
T_CHARACTER   
T_CLASS class
T_CLOSE_TAG ?> %> 
T_COMMENT// #
T_CONCAT_EQUAL.=
T_CONSTconst  
T_CONSTANT_ENCAPSED_STRING "foo" 'bar'
T_CONTINUEcontinue  
T_CURLY_OPEN   
T_DEC-- /
T_DECLARE declare declare
T_DEFAULTdefault switch
T_DIV_EQUAL/=
T_DNUMBER0.12, etc
T_DOdo do..while
T_DOLLAR_OPEN_CURLY_BRACES${
T_DOUBLE_ARROW=>
T_DOUBLE_CAST (real), (double) (float)
T_ECHOecho echo()
T_ELSEelse else
T_ELSEIFelseif elseif
T_EMPTYempty empty()
T_ENCAPSED_AND_WHITESPACE   
T_ENDDECLARE enddeclare declare,
T_ENDFORendfor for,
T_ENDFOREACHendforeach foreach,
T_ENDIFendif if,
T_ENDSWITCHendswitch switch,
T_ENDWHILEendwhile while,
T_END_HEREDOC  heredoc
T_EVAL eval() eval()
T_EXIT exit die exit(), die()
T_EXTENDSextends extends,
T_FILE__FILE__
T_FORfor for
T_FOREACHforeach foreach
T_FUNCTIONfunction cfunction
T_GLOBALglobal
T_IFif if
T_INC++ /
T_INCLUDE include() include()
T_INCLUDE_ONCEinclude_once() include_once()
T_INLINE_HTML   
T_INT_CAST (int) (integer)
T_ISSETisset() isset()
T_IS_EQUAL==
T_IS_GREATER_OR_EQUAL>=
T_IS_IDENTICAL===
T_IS_NOT_EQUAL!= <>
T_IS_NOT_IDENTICAL!==
T_SMALLER_OR_EQUAL<=
T_LINE__LINE__
T_LISTlist() list()
T_LNUMBER123, 012, 0x1ac, etc
T_LOGICAL_ANDand
T_LOGICAL_ORor
T_LOGICAL_XORxor
T_MINUS_EQUAL-=
T_ML_COMMENT/* */
T_MOD_EQUAL%=
T_MUL_EQUAL*=
T_NEWnew
T_NUM_STRING   
T_OBJECT_CAST (object)
T_OBJECT_OPERATOR ->
T_OLD_FUNCTION old_function old_function
T_OPEN_TAG<?php, <? <% HTML
T_OPEN_TAG_WITH_ECHO <?= <%= HTML
T_OR_EQUAL|=
T_PAAMAYIM_NEKUDOTAYIM :: ::
T_PLUS_EQUAL+=
T_PRINTprint() print()
T_REQUIRErequire() require()
T_REQUIRE_ONCErequire_once() require_once()
T_RETURNreturn
T_SL<<
T_SL_EQUAL<<=
T_SR>>
T_SR_EQUAL>>=
T_START_HEREDOC<<< heredoc
T_STATICstatic
T_STRING  
T_STRING_CAST(string)
T_STRING_VARNAME  
T_SWITCHswitch switch
T_UNSETunset() unset()
T_UNSET_CAST(unset) ( ; NULL)
T_USEuse ( )
T_VAR var
T_VARIABLE$foo
T_WHILEwhile while, do..while
T_WHITESPACE  
T_XOR_EQUAL^=
T_FUNC_C__FUNCTION__ , PHP 4.3.0
T_CLASS_C __CLASS__ , PHP 4.3.0

mysql php

: 3119 .

: - |  -