How To Translate This Smarty To Php

{if $location_data.dispatch == "profiles.add"}{/if}

Please try

if ($location_data['dispatch'] == "profiles.add") {

}

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread.