Skip to content

Instantly share code, notes, and snippets.

<?php
function is_valid_regex($vat,$country){
// current regex function
return true;
}
function validate_vat($vat,$country){
if(is_valid_regex($vat,$country)) {
<?php
//
//class ParentClass
//{
// public function getClassName()
// {
// return get_called_class() === (new \ReflectionMethod(get_called_class(), __FUNCTION__))->getDeclaringClass()->getName();
// }
//
// public function getClassNameDoesntExist()
@tarranjones
tarranjones / phpstorm-eap-update
Created March 6, 2018 09:08 — forked from AubreyHewes/phpstorm-eap-update
Update/Install the latest PhpStorm EAP automatically (add to external tools)
#!/usr/bin/env bash
#######################################################################################################################
#
# Updates/Install the latest PhpStorm EAP
#
# --------------------------------------------------------------------------------------------------------------------
#
# * Retrieves the current version from the EAP wiki
# * If the new version is not the current version (based on symlink to PhpStorm) then updates
# * Creates a symlink from versioned folder to PhpStorm