strcmp

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Binary safe string comparison
strcmp(string $string1string $string2): int
        }



        return 
is_numeric($attribute) && is_numeric($original)

            && 
strcmp((string) $attribute, (string) $original) === 0;

    }
        $two Str::lower($two);



        if (! 
class_exists(Collator::class)) {

            return 
strcmp($one$two);

        }



        return (new 
Collator($this->locale))->compare($one$two);
            $rootRequires $this->getRootRequires();

            
$packages $installedRepo->getPackages();

            
usort($packages, function (BasePackage $aBasePackage $b) {

                return 
strcmp((string) $a, (string) $b);

            });

            
$arrayTree = array();

            foreach (
$packages as $package) {
        $phar->startBuffering();



        
$finderSort = function ($a$b) {

            return 
strcmp(strtr($a->getRealPath(), '\\''/'), strtr($b->getRealPath(), '\\''/'));

        };
        }



        
usort($usedAliases, function ($a$b) {

            return 
strcmp($a['package'], $b['package']);

        });



        return 
$usedAliases;
                    return $a instanceof AliasPackage ? -1;

                }


                return 
strcmp($b->getVersion(), $a->getVersion());

            }



            return 
strcmp($b->getName(), $a->getName());
                return strcmp($b->getVersion(), $a->getVersion());

            }



            return 
strcmp($b->getName(), $a->getName());

        };



        
$this->resultPackageMap = array();
                $b $b->getPackage()->getName();

            }



            return 
strcmp($a$b);

        };

        
usort($uninstalls$sortByName);

        
usort($installsUpdates$sortByName);
        }



        
usort($locked, function ($a$b) {

            
$comparison strcmp($a['name'], $b['name']);



            if (
!== $comparison) {

                return 
$comparison;
            }




            return 
strcmp($a['version'], $b['version']);

        });



        return 
$locked;
        sort($data['dev-package-names']);

        
usort($data['packages'], function ($a$b) {

            return 
strcmp($a['name'], $b['name']);

        });



        
$this->file->write($data);
    public function isStream()

    {

        return 
is_string($this->p4DepotType) && (strcmp($this->p4DepotType'stream') === 0);

    }
            $resArray explode(PHP_EOL$result);

            foreach (
$resArray as $line) {

                
$fields explode('='$line);

                if (
strcmp($name$fields[0]) == 0) {

                    
$index strpos($fields[1], ' ');

                    if (
$index === false) {

                        
$value $fields[1];
        foreach ($resArray as $line) {

            if (
strpos($line'Depot') !== false) {

                
$fields explode(' '$line);

                if (
strcmp($this->p4Depot$fields[1]) === 0) {

                    
$this->p4DepotType $fields[3];



                    return 
$this->isStream();
            }



            
usort($actualInstalled, function ($a$b) {

                return 
strcmp($a['name'], $b['name']);

            });



            
$this->assertSame($expectInstalled$actualInstalled);