• 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

Pass an image through AJAX [duplicate]

How to get Laravel's CSRF Token from Another Website?

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

Last order would be re-order in wooCommerce. How is it possible?

Split comma separated value from table column into rows using mysql?

How can I get new CSRF token in LARAVEL by using ajax

How to test laravel controller method?

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Transpose multidimensional array and join values with commas

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

Laravel Passport - Not able to get token string in response?

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Android Volley getParams() method not getting called for JsonObjectRequest

PHP contact form configuration [duplicate]

About Contact Privacy policy Terms and conditions