Skip to content

zhaiqianfeng/PHP-ParseUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

PHP-ParseUtils

The PareseUtils is for PHP to Parse our protocol.

If you have any questions,please let me know.

##Code example

public function prase($orginalStr)
{
    //init hex string
    $parse = new ParseUtils($orginalStr);

    //parse the protocol
    $res = $parse->getByte();
    $res .= $parse->getShort();

    //set the byte index
    $parse->setIndex(1);
    $res .= $parse->getShort();

    //ignore next 10bytes
    $parse->ignoreBytes(10);
    $res .= $parse->getShort();

    return $res;
}

About

The PareseUtils is for PHP to Parse our protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages