alert js in php

PHP
echo '<script language="javascript">alert("juas");</script>';javascript:alert('Email enviado com Sucesso!');
javascript:window.location='index.php';// This is in the PHP file and sends a Javascript alert to the client
$message = "Something";
echo "<script type='text/javascript'>alert('$message');</script>";
Source

Also in PHP: