check if number is multiple of 3 in php

PHP
You can check simply by using below code:
if($num%3==0){
  echo "the number is multiple of 3";
}
Source

Also in PHP: