• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP how to detect if running on arm64 cpu?

phparm64


PHP Snippet 1:

// have been in a situation where MacOS-php says 
// "arm64" while php-in-docker-linux-container-running-on-macos
// says "aarch64"...
$isArm64 = (false!==stripos(php_uname("m"), "aarch64") || false!== stripos(php_uname("m"),"arm64"));

Related Snippets

Warning: A non-numeric value encountered

Querying only one row from a one to many relationship laravel

Laravel Unknown Column 'updated_at'

How to create a individual template for page or post in custom plugin?

HTML and PHP in one file

The "client_reference_id" argument is not passed

Creating command to backup MySql database in Laravel

How to average columns of data from multiple, flat arrays?

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Sum array values of a column within each column of an array with 3 levels

Laravel Excel::store file empty after stored

How to get array values using foreach in laravel

PHP only Hit Counter?

Appending data to an anchor tag

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

About Contact Privacy policy Terms and conditions