PHP – mb_strlen to regain the size of a character chain and not strlen
Basic I've seen a lot of codes using strlen to recover a character chain size, unfortunately this method, returns the
Read moreBasic I've seen a lot of codes using strlen to recover a character chain size, unfortunately this method, returns the
Read moreA small function to replace the character accented their pendants without. function normalize_str ($str) { $invalid ' array,'' 'S', '''s',
Read moreTo effectively remove special characters in a thong, simply use the preg_replace method. $string – preg_replace ('[^a-zA-Z0-9]/s', '', $string);
Read moreTo make queries on WordPress, I'm used to using WP_Query ($args). In this example, we are talking about adding a
Read moreTo make all wordpress functions accessible in a PHP script, just include the wp_load.php require_once('.. /wp-load.php'); to test, we can
Read moreUsing the getElementsByTagName method to navigate and find the wire in question. $number-orders – $image-1–getElementsByTagName ('number_order'); foreach ($number-orders as $key
Read moreTo find out if the current user is an administrator in WordPress, i.e. if they have the right to set
Read moreFor every WordPress image, we can add a Caption/Title. It may be useful to add a counter. To do this,
Read moreTo recover the value of the select button: $('input[name=radioName]:checked', '#myForm').val()
Read moreTo make a curl application with authentication, just add the option CURLOPT_USERPWD $ch curl_init(); curl_setopt ($ch,CURLOPT_URL, url'); curl_setopt ($ch, CURLOPT_USERPWD,
Read more