bin2hex

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Convert binary data into hexadecimal representation
<?php bin2hex(string $string): string
<?php     protected function escapeBinary($value)

    {

        $hex = bin2hex($value);



        return "x'{$hex}'";

    }
<?php     protected function escapeBinary($value)

    {

        $hex = bin2hex($value);



        return "'\x{$hex}'::bytea";

    }
<?php     protected function escapeBinary($value)

    {

        $hex = bin2hex($value);



        return "x'{$hex}'";

    }
<?php     protected function escapeBinary($value)

    {

        $hex = bin2hex($value);



        return "0x{$hex}";

    }
<?php     public static function setUpBeforeClass(): void

    {

        static::$adapterPrefix = 'ci/' . bin2hex(random_bytes(10));

    }



    protected function tearDown(): void
<?php     public static function setUpBeforeClass(): void

    {

        static::$adapterPrefix = getenv('FLYSYSTEM_AWS_S3_PREFIX') ?: 'ci/' . bin2hex(random_bytes(10));

    }



    protected function tearDown(): void
<?php     public static function setUpBeforeClass(): void

    {

        static::$adapterPrefix = 'ci/' . bin2hex(random_bytes(10));

    }



    protected static function createFilesystemAdapter(): FilesystemAdapter