Hi I'm quite new to php, is the below possible? i.e creating a variable out of other php. It's not working for me at the moment. Cheers

PHP Code:
$cat '$category->name'