<<

. 107
( 132 .)



>>

with newname
string Returns the current module
session_module_name([string
name used for accessing
newname])
session data; if newname is
given, the module name is
replaced with newname
void Sets the user-level functions
session_set_save_handler(string
open, string close, string read,
string write, string destroy,
string gc)

string Returns the current save
session_save_path([string
path passed to
newname])
module_name; if newname
is given, the save path is
replaced with newname
string Returns the current session
session_id([string newid])
ID; if newid is given, the
session ID is replaced with
newid

string Returns the current cache
session_cache_limiter([string
limiter; if new_cache_
new_cache_limiter])
limiter is given, the
current cache limiter is
replaced with new_
cache_limiter

int Returns the current
session_cache_expire([int
cache_expire; if
new_cache_expire])
new_cache_expire
is given, the current
cache_expire is replaced
with new_cache_expire
Appendix F: PHP Function Reference 637



Function Return Value Action

bool Adds var_name(s) to the
session_register(mixed
list of variables that are
var_names [, mixed ...])
frozen at the session™s end
bool Removes varname from the
session_unregister(string
list of variables that are
varname)
frozen at the session™s end
bool Checks if a variable is
session_is_registered(string
registered in the session
varname)

string Serializes the current setup
session_encode(void)
and returns the serialized
representation
bool Deserializes data and
session_decode(string data)
reinitializes the variables
bool Begins session ” reinitializes
session_start(void)
frozen variables, registers
browsers, and so on
bool Destroys the current session
session_destroy(void)
and all data associated
with it
void Unsets all registered
session_unset(void)
variables
void Writes session data and ends
session_write_close(void)
the session




TABLE F-20 XPAT XML FUNCTIONS

Function Return Value Action

int Creates an XML parser
xml_parser_create([string
encoding])

int Creates an XML parser
xml_parser_create_ns([string
encoding [, string sep]])

Continued
638 Part V: Appendixes


TABLE F-20 XPAT XML FUNCTIONS (Continued)

Function Return Value Action

int Sets up an object that
xml_set_object(int pind,
should be used for callbacks
object &obj)

int Sets up start and end
xml_set_element_handler(int
element handlers
pind, string shdl, string ehdl)

int Sets up a character-data
xml_set_character_data_handler
handler
(int pind, string hdl)

int Sets up a processing-
xml_set_processing_instruction_
instruction (PI) handler
handler(int pind, string hdl)

int Sets up a default handler
xml_set_default_handler(int
pind, string hdl)

int Sets up an unparsed-
xml_set_unparsed_entity_decl_
entity-declaration handler
handler(int pind, string hdl)

int Sets up a notation-
xml_set_notation_decl_handler
declaration handler
(int pind, string hdl)

int Sets up an external entity-
xml_set_external_entity_ref_
reference handler
handler(int pind, string hdl)

int Sets up a character-data
xml_set_start_namespace_decl_
handler
handler(int pind, string hdl)

int Sets up a character-data
xml_set_end_namespace_decl_
handler
handler(int pind, string hdl)

int Starts parsing an XML
xml_parse(int pind, string
document
data [, int isFinal])

int Parsing a XML document
xml_parse_into_struct(int pind,
string data, array &struct,
array &index)

int Gets XML parser-error code
xml_get_error_code(int pind)

string Gets XML parser-error string
xml_error_string(int code)

int Gets the current line number
xml_get_current_line_number
for an XML parser
(int pind)

int Gets the current column
xml_get_current_column_number
number for an XML parser
(int pind)
Appendix F: PHP Function Reference 639



Function Return Value Action

int Gets the current byte index
xml_get_current_byte_index
for an XML parser
(int pind)

int Frees an XML parser
xml_parser_free(int pind)

int Sets options in an XML
xml_parser_set_option(int pind,
parser
int option, mixed value)

int Gets options from an XML
xml_parser_get_option(int pind,
parser
int option)

string Encodes an ISO-8859-1
utf8_encode(string data)
string to UTF-8
string Converts a UTF-8“encoded
utf8_decode(string data)
string to ISO-8859-1




TABLE F-21 WDDX FUNCTIONS

Function Return Value Action

string Creates a new packet and
wddx_serialize_value(mixed var
serializes the given value
[, string comment])

string Creates a new packet and
wddx_serialize_vars(mixed
serializes given variables
var_name [, mixed ...])
into a structure
int Starts a WDDX packet with
wddx_packet_start
an optional comment and
([string comment])
returns the packet ID
string Ends the specified WDDX
wddx_packet_end(int packet_id)
packet and returns the string
containing the packet
int Serializes given variables
wddx_add_vars(int packet_id,
and adds them to the packet
mixed var_names [, mixed ...])
given by packet_id
mixed Deserializes the given packet
wddx_deserialize(string packet)
and returns a PHP value
640 Part V: Appendixes


TABLE F-22 BC MATH FUNCTIONS

Function Return Value Action

string Returns the sum of two
bcadd(string left_operand,
arbitrary-precision numbers
string right_operand [, int
scale])

string Returns the difference
bcsub(string left_operand,
between two arbitrary-
string right_operand [, int
precision numbers
scale])

string Returns the product of two

<<

. 107
( 132 .)



>>