I'm getting information from a site that generates content in JSON format and there was a question about using functions as a parameter to other functions, does this slow down the application? and if so, how to know?
Example:
$requestUrl = 'BlaBla.com';
$pageContent = json_decode(file_get_contents($requestUrl), true);
OR
$pageContent = file_get_contents($requestUrl);
$decodeContent = json_decode($pageContent, true);