When using join(), I used the code:
If used on localhost(without wordpress), the above code provides a valid output. But, somehow, its not working on WordPress. The "apache error log" show this message:
PHP Warning: join() [function.join]: Invalid arguments passed in \wp-content\plugins\Animation\animation.php on line 129, referer: http://localhost/Website/wp-admin/options-general.php?page=js
Same is the case with implode(). Server error log shows same above warning for implode().
Then I tried for json_encode using the code below:
var lat = <?php echo json_encode($php1); ?>;
But the no value is returned.