Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if a value exists in an array
in_array(mixed $needle, array $haystackbool $strict false): bool
        $bottom_y $height;




        if (
in_array('top'$away)) {



            for (
$y=0$y ceil($height/2); $y++) {

                for (
$x=0$x $width$x++) {
        }




        if (
in_array('left'$away)) {



            for (
$x=0$x ceil($width/2); $x++) {

                for (
$y=$top_y$y $height$y++) {
        }




        if (
in_array('bottom'$away)) {



            for (
$y=($height-1); $y >= floor($height/2)-1$y--) {

                for (
$x=$top_x$x $width$x++) {
        }




        if (
in_array('right'$away)) {



            for (
$x=($width-1); $x >= floor($width/2)-1$x--) {

                for (
$y=$top_y$y $bottom_y$y++) {
        $internalfont is_null($this->file) ? $this->file;

        
$internalfont is_numeric($internalfont) ? $internalfont false;



        if ( ! 
in_array($internalfont, [12345])) {

            throw new 
NotSupportedException(

                
sprintf('Internal GD font (%s) not available. Use only 1-5.'$internalfont)

            );
    {

        
$mode $this->argument(0)->value('h');



        if (
in_array(strtolower($mode), [2'v''vert''vertical'])) {


            return 
$image->getCore()->flipImage();

        } else {
        list($crop_width$crop_height) = [$trimed->width$trimed->height];




        if ( ! 
in_array('right'$away)) {

            
$crop_width $crop_width + ($width - ($width $crop_x));

        }
        }




        if ( ! 
in_array('bottom'$away)) {

            
$crop_height $crop_height + ($height - ($height $crop_y));

        }
        }




        if ( ! 
in_array('left'$away)) {

            
$crop_width $crop_width $crop_x;

            
$crop_x 0;

        }
        }




        if ( ! 
in_array('top'$away)) {

            
$crop_height $crop_height $crop_y;

            
$crop_y 0;

        }
        $this->assertTrue($output->hasHeader('Content-Type'));

        
$this->assertTrue($output->hasHeader('Content-Length'));



        
$this->assertTrue(in_array($output->getHeaderLine('Content-Type'), [

            
'application/xml',

            
'text/xml',

        ]));



        
$this->assertEquals(

            
strlen($encodedContent),