Habe mit get_objects_vars mir ein Array erzeugen lassen und möchte nun den Wert für [expires] auslesen...
Wie kann ich dies tun? Normalerweise greife ich auf solche Arrays mit
$value = get_objects_vars($object);
$expires = $value['expires'];
zu, aber hier geht dies nicht... Wie kann ich es sonst anstellen?
Wie kann ich dies tun? Normalerweise greife ich auf solche Arrays mit
$value = get_objects_vars($object);
$expires = $value['expires'];
zu, aber hier geht dies nicht... Wie kann ich es sonst anstellen?
Array (
[output_id] => [output_group] => [caching] => 1
[gc_time] => 1 [gc_probability] => 1 [gc_maxlifetime] => 86400
[container] => Cache_Container_file
Object (
[fileLocking] => [cache_dir] => cachefiles/
[filename_prefix] => tmp_ [entries] => Array ( )
[total_size] => 0 [max_userdata_linelength] => 257
[preload] => 1 [id] => b2a875b7ab64d894d61e580a600c7449
[group] => default [expires] => 1144087369
[cachedata] => 1000 # [userdata] => [unknown] =>
[encoding_mode] => base64 [highwater] => 2048000
[lowwater] => 1536000 [allowed_options] =>
Array
(
[0] => encoding_mode [1] => highwater [2] =>
lowwater ) [group_dirs] => Array
( [default] => cachefiles/default/ )
)
[_debug] => [_default_error_mode] => [_default_error_options] =>
[_default_error_handler] => [_error_class] =>
PEAR_Error [_expected_errors] => Array ( )
)
[output_id] => [output_group] => [caching] => 1
[gc_time] => 1 [gc_probability] => 1 [gc_maxlifetime] => 86400
[container] => Cache_Container_file
Object (
[fileLocking] => [cache_dir] => cachefiles/
[filename_prefix] => tmp_ [entries] => Array ( )
[total_size] => 0 [max_userdata_linelength] => 257
[preload] => 1 [id] => b2a875b7ab64d894d61e580a600c7449
[group] => default [expires] => 1144087369
[cachedata] => 1000 # [userdata] => [unknown] =>
[encoding_mode] => base64 [highwater] => 2048000
[lowwater] => 1536000 [allowed_options] =>
Array
(
[0] => encoding_mode [1] => highwater [2] =>
lowwater ) [group_dirs] => Array
( [default] => cachefiles/default/ )
)
[_debug] => [_default_error_mode] => [_default_error_options] =>
[_default_error_handler] => [_error_class] =>
PEAR_Error [_expected_errors] => Array ( )
)
Kommentar