PHP 7 introduces the spaceship (<=>) operator
So what exactly is the spaceship (<=>) operator? Return 0 if values on either side are equal Return 1 if value on the left is greater Return -1 if the value…
All Posts filed under PHP
So what exactly is the spaceship (<=>) operator? Return 0 if values on either side are equal Return 1 if value on the left is greater Return -1 if the value…
To bring the coupon code field position below all the other fields, you need do the following: Take this file: /wp-content/plugins/s2member-pro/includes/templates/forms/paypal-checkout-form.php And copy it into your active theme directory. Now…
Recently we had to work on an X-Cart web project where the client wanted to interface with TaxCloud’s API to solve the problem of New York State’s convoluted sales tax…
A quick way to suppress Errors and Warning Messages within PHP: <?php error_reporting(E_ERROR | E_PARSE); ?> Of course, this is only good in a pinch. Fix the errors and warnings…
If you’re getting this error when using S2Member to create a member profile, and credit cards seem to work fine but not PayPal, read on: You need to login to…
<?php var_dump(class_exists(“SOAPClient”)); ?> If you’re having problems with an application on your web hosting service where SOAP seems to be unavailable, you can check to make sure using the script…
“Cannot modify header information – headers already sent” warnings are typically due to extra spaces before opening PHP tags and after closing PHP tags. Try the following to resolve these…
Increasing the PHP environment memory and file upload limits on virtual hosting account is a common question. This is especially true when your working on a WordPress site and the file…
<?php $number = “(212)222.1111”; //Strip Out Everything Except Numbers $formatted_number=ereg_replace(“[^0-9]”, “”, $number); //Add Dashes $formatted_number = substr ($formatted_number, 0, 3) . ‘-‘ . substr ($formatted_number, 3, 3) . ‘-‘ ….
Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001