How to include Javascript file in php file?
<script type="text/javascript" src="example.js"></script>
Sample example.js file content:
function _encrypt($in)
{
/*Your code here*/
return $out;
}
function _decrypt($in)
{
/*Your code here*/
return $out;
}
<script type="text/javascript" src="example.js"></script>
Sample example.js file content:
function _encrypt($in)
{
/*Your code here*/
return $out;
}
function _decrypt($in)
{
/*Your code here*/
return $out;
}