Search code examples
phpfacebookfbjs

How do I get a PHP variable between single quotes?


How can I get the value $fbAppPath into the PHP statement below?

<? print json_encode(array(array('text' => 'Become A Fan', 'href' => '$fbAppPath'))); ?>

Solution

  • <? print json_encode(array(array('text' => 'Become A Fan', 'href' => $fbAppPath))); ?>