![]() An example of its usage would look like this:Īnd the generated HTML markup would be this: You can call this function at the exact place you want to run the console_log that we just created above. An example of its usage would look like this: '. The key principle is that we can make use of JSON to pass the PHP variable to the JavaScript function. Recall that console.log is a JavaScript function. ![]() Let’s say you want to console log a PHP variable $view_variable in your view layer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |