Skip to content

Instantly share code, notes, and snippets.

View danielbentes's full-sized avatar

Daniel Bentes danielbentes

View GitHub Profile
@danielbentes
danielbentes / keybase.md
Created November 17, 2014 12:50
keybase.md

Keybase proof

I hereby claim:

  • I am danielbentes on github.
  • I am danielbentes (https://keybase.io/danielbentes) on keybase.
  • I have a public key whose fingerprint is 7001 F21C BA6E 704B F548 DDB1 812D 2116 1012 BF34

To claim this, I am signing this object:

@danielbentes
danielbentes / validateme
Created November 1, 2011 13:16
Validate phone
/**
* Check if a phone number is valid
*
* A valid phone number can only contain numbers and these characters: +-()
*
* @param string $number Phone Number
* @param string $prefix Calling prefix (optional)
* @return boolean TRUE if Valid, FALSE if Invalid
*/
public static function isValidPhoneNumber($number, $prefix = false) {