CaMykS 1.0-20261010
Functions
phone.php.inc File Reference

Functions

 phone_isNumberValid ($number)
 Phone related methods. More...
 
 phone_parse ($number, $defaultCountryCode=null)
 
 phone_display ($number, $defaultCountryCode=null, $prefixDisplay='code')
 

Function Documentation

◆ phone_isNumberValid()

phone_isNumberValid (   $number)

Phone related methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.1
Date
Creation: Nov 2024
Modification: Oct 2025
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning
This library is not loaded with CaMykS initialisation. Check phone number is valid.
Parameters
string$number
Returns
boolean result

◆ phone_parse()

phone_parse (   $number,
  $defaultCountryCode = null 
)

Parse phone number.

Parameters
string$number
string$defaultCountryCode
Returns
mixed

◆ phone_display()

phone_display (   $number,
  $defaultCountryCode = null,
  $prefixDisplay = 'code' 
)

Display phone number.

Parameters
string$number
string$defaultCountryCode
string$prefixDisplay
Returns
string