• 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

How to implement placeholder in a php file for moodle plugin?

Display a product custom field only in WooCommerce Admin single orders

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

php - add comma thousands separator but remove trailing zeros

How to identify whether webp image is static or animated?

SQL AVG() to 2 decimals

How can I make a full text index of the column?

Check if a string contain multiple specific words

array_key_exists(): The first argument should be either a string or an integer

PHP Find Array Index value in multi-line array

php code to send checkbox form results to email

Results page in other window

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

insert multiple rows in a saveall in cakephp

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

About Contact Privacy policy Terms and conditions