Description
int
extract
( array var_array [, int extract_type [, string prefix]])
הערה
:
Since
version
4.0.5
this
function
returns
the
number
of
variables
extracted
.
extract(
)
checks
each
key
to
see
whether
it
constitutes
a
valid
variable
name
and
also
for
collisions
with
existing
variables
in
the
symbol
table
.
The
way
invalid
/
numeric
keys
and
collisions
are
treated
is
determined
by
extract_type
.
- EXTR_OVERWRITE
-
- EXTR_SKIP
-
- EXTR_PREFIX_SAME
-
- EXTR_PREFIX_ALL
-
Since
PHP
4.0.5
this
includes
numeric
ones
as
well
.
- EXTR_PREFIX_INVALID
-
- EXTR_IF_EXISTS
-
- EXTR_PREFIX_IF_EXISTS
-
A
possible
use
for
extract
is
to
import
into
the
symbol
table
variables
contained
in
an
associative
array
returned
by
wddx_deserialize(
)
.
דוגמה
1
.
extract(
)
example
|