• 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

PHP Get value from JSON [duplicate]

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

Convert PHP array into HTML tag attributes separated by spaces

Wordpress add responsive srcset header image to theme

How can I stop a symfony process which is listening on http://127.0.0.1:8000

Using PHP to connect to a remote MSSQL database

Access denied for user 'homestead'@'localhost' (using password: YES)

Laravel Livewire: jQuery not working in child component loaded via @if statement

how to remove white space in select 2

Laravel - Implicit route model binding with soft deleted data

Don't show recurring price for WooCommerce subscriptions worth 0$

Sum array values

What is my SQL missing?

Laravel Pagination links() not working

PHP web3 ERC20 token function call

About Contact Privacy policy Terms and conditions