You can simply combine the printf
and json_encode
function to make this.
function console_log($data) {
printf('<script>console.log(%s);</script>', json_encode($data));
}
console_log(['name' => 'Wallace Maxters']);
Output:
For further actions, you may consider blocking this person and/or reporting abuse
CodeLink -
Taqui -
Rashid Shamloo -
Scofield Idehen -
Once suspended, wallacemaxters will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, wallacemaxters will be able to comment and publish posts again.
Once unpublished, all posts by wallacemaxters will become hidden and only accessible to themselves.
If wallacemaxters is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Wallace Maxters.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag wallacemaxters:
Unflagging wallacemaxters will restore default visibility to their posts.
Top comments (0)