My code is written below:
<?php
$message = "<script type="text/javascript">
$(document).ready(function(){
demo.initChartist();
$.notify({
icon: 'pe-7s-gift',
message: "hello world."
},{
type: 'info',
timer: 4000
});
});
</script>";
?>
inside html
<?php echo $message; ?>