how to check php is installed or not in ubuntu code example Example: check the php version in ubuntu php --version