• 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

Xdebug can't connect back to Docker host

How to send image,audio or video through the WhatsApp API - PHP

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

How to set dynamic `home` and `siteurl` in WordPress?

Make Calculator - When Button clicked the No shows in Textbox.

PHP password_verify

PHP array sort and remove duplicates by two field values

Error converting docx to pdf using Unoconv

javascript html popup window

Symfony autowiring issues since docker update

Call to a member function givePermissionTo() on null

Get keys from associative array [duplicate]

Alert message after submitting form in PHP

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

how to create html table in php

About Contact Privacy policy Terms and conditions