Newbie question - Call functions inside other functions?

Hello all,

When we have this:

$dataExpiracao  = strtok($resposta['exDate'], "T");    
$dominioVo->setExpDate($dataExpiracao);

We can have this as well:

$dominioVo->setExpDate(strtok($resposta['exDate'], "T"));

Right?:shifty:

However, sometimes, we get an error like, “cannot execute function at runtime” or something similar (I don’t precisely recall), my question is:

Why do we get those errors ? On what circumstances should we expect that a function call inside another function will work, and on what circumstances should we expect that a function call will NOT work?

Thanks a lot, again.
Márcio

PHP is iffy when it comes to that situation, its mainly due to pointer allocation and very hard to figure out what functions require none referenced data structures.

To best relive yourself from this call each function but itself, which is what your doing now. Welcome to the wonderful world of PHP