<?php
$names = array("Bill", "Kusal", "Rex", "Jhon");
if(in_array("Kusal", $names))
{
echo "Kusal is here";
}
else
{
echo 'Not Found';
}
?>
Get Free Sinhala IT Learning Videos Kuppiya.com
<?php
$names = array("Bill", "Kusal", "Rex", "Jhon");
if(in_array("Kusal", $names))
{
echo "Kusal is here";
}
else
{
echo 'Not Found';
}
?>
<?php
echo 'Original Date/Time <br />';
//mktime(hour,minute,second,month,day,year)
echo date("h:i:s d-m-Y", mktime(10, 15, 20, 8, 20, 2008));
//10:15:20 20-08-2008
echo '<br /><br />';
echo 'Date/Time Added by 1';
echo '<br />';
echo date("h:i:s d-m-Y", mktime(10+1, 15+1, 20+1, 8+1, 20+1,2008+1));
//11:16:21 21-09-2009
?>
<div onmouseover="this.style.background='green';"
onmouseout="this.style.background='white';">
kuppiya.com
</div>
<script type="text/javascript">
var url = window.location.href;
document.write(url);
</script>
<HTML>
<HEAD>
<TITLE>Parent window</TITLE>
</HEAD>
<BODY>
<table border="1">
<tr>
<td>This is main</td>
<td><iframe src ="frame2.htm" width="100%">
</iframe></td>
</tr>
</table>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<div onClick="top.location.href='frame.php'">
Click here to reload parent page</div>
</BODY>
</HTML>
<?php //before use of date_default_timezone_set echo date("d-m-Y h:i:s A"); echo '<br /><br />'; //set to US central time date_default_timezone_set('US/Central'); echo date("d-m-Y h:i:s A"); ?>