• 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

"cannot list resources" error from WooCommerce REST API

PHP - Store information with NO database

Multiply each value in array using array_map function

Target Laravelista is not instantiable

Laravel 8 Multiple Relationships for Factory

SQL AVG() to 2 decimals

Read users and passwords from a txt file

Extract house numbers from address string

Using PHP to connect to a remote MSSQL database

Convert date and time to Jalali in Laravel

php retrieve specific data onclick from database in a list format

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

PHP header location absolute URL

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

SlimExceptionHttpNotFoundException

About Contact Privacy policy Terms and conditions