Jump to content
Sign in to follow this  

PHP Алгоритм корректности (валидности) кошелька PAYEER

Recommended Posts

Всем привет.

Может кому пригодиться функция проверки кошелька Payeer 

Например для выплат на кошелек.

function validatePayeer($purse){
        if (substr($purse, 0, 1) != "P") {
            return false;
        if (!preg_match("/^[0-9]{7,11}$/", substr($purse, 1))) {
            return false;
        return $purse;
	if (!validatePayeer('P000000000')) {
    echo 'ошибка в номере Payeer';


  • Upvote 1

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this