1) { $git = array_slice($git,0,2); } $git = join(".",$git); echo "APP_VERSION={$git}\n";