Wrap all items of array in quotes – PHP 

If we have associative PHP array and its necessary print it in JavaScript array, we ca use next PHP code:

   

  Unserialize PHP value only if it was serialized 

If its necessary to check is string we got is serialized array and unserialize it if its true …

  Call a PHP callback function with an array of parameters 

If its necessary, for example in any PHP loop (foreach) using any defined logic call specialized function with arguments by that logic –  next code will do it:

  Kill WordPress execution and display HTML message with error message 

If its necessary to stop execution of PHP process in WordPress and show to the user any message with the reason of it, next function will do it:

  How to restrict access to wp-admin using .htaccess 

Apache .htaccess script for access restrictions …

  How to parse link by PHP 

How to make parsing of link query by PHP …

  How to remove text only from tag container by jQuery 

How to remove text nodes only from any tag container …

  Get unique values from JavaScript array 

Get from JavaScript array unique values only …

  How to merge JavaScript objects options 

If its necessary merge 2 or even more JavaScript objects – next function will help in it …