Test PHP

If you need to test PHP between different PHP version try this online sandbox:https://sandbox.onlinephpfunctions.com/ 1 How to not get an “apple” element from the array $a = array(“a” => “apple”, “b” =>...

SOLID, DRY, KISS, YANGI

Quick preview – Develop PHP with standards. Fallow this rules to ensure your code is legit and well formed. Keep up with those principle and you will become a better programer. KISS – “Keep It Simple, Stupid” The simpler your code is, the...

mb_ – multibyte support in PHP

While there are many languages in which every necessary character can be represented by a one-to-one mapping to an 8-bit value, there are also several languages which require so many characters for written communication that they cannot be contained within the range a...

WP – Adding custom field to Woocommerce checkout page

Adding Custom Shipping And Billing Fields Adding fields is done in a similar way to overriding fields. For example, let’s add a new field to shipping fields – shipping_phone: // Hook in add_filter( ‘woocommerce_checkout_fields’ ,...