Hey guys,
recently I got a problem with PHP on which I haven't found a solution yet. I'm calling a function out of a object, but there seems to be a problem regarding the parameters.
Object (very simplyfied):
than, later on:
if I want to call the function now in a part of my document:
the dump just throws out stuff like this:
Anyone got an idea why it isn't working? I'm quite common with PHP and did a lot of similar stuff and that's why I'm wondering this code won't work.
Thanks for you advise!
recently I got a problem with PHP on which I haven't found a solution yet. I'm calling a function out of a object, but there seems to be a problem regarding the parameters.
Object (very simplyfied):
PHP Code:
class HP{
function preload_async($folders){
var_dump($folders);
}
}
PHP Code:
$HP = new HP;
PHP Code:
<?=$HP->preload_async(array('slide','store'))?>
PHP Code:
array(1) {
[0]=>
string(0) ""
}
Thanks for you advise!