<?php
$kalimat = "Praktikum Pemrograman Web";
$jumlah = strlen($kalimat);
$karakter = "i";
$cari = strpos($kalimat,
$karakter);
$kapital = strtoupper($kalimat);
$kecil = strtolower($kalimat);
date_default_timezone_set('Asia/Jakarta');
$tanggal = date("l, d F Y G:i:s");
$temp = explode(' ',$kalimat);
for ($i=0; $i < sizeof($temp); $i++) {
# code...
echo $temp[$i]."<br>";
}
$hubung = implode('', $temp);
echo "implode : $hubung";
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<br><br>
<table border="2" align="center">
<tr>
<td>Kalimat</td>
<td>STRLEN</td>
<td>STRPOS</td>
<td>STRTOUPPER</td>
<td>STRTOLOWER</td>
<td>DATE</td>
</tr>
<tr>
<td><?php echo "$kalimat"; ?></td>
<td><?php echo "$jumlah"; ?></td>
<td><?php echo "$cari"; ?></td>
<td><?php echo "$kapital"; ?></td>
<td><?php echo "$kecil"; ?></td>
<td><?php echo "$tanggal"; ?></td>
</tr>
</table>
</body>
</html>
$kalimat = "Praktikum Pemrograman Web";
$jumlah = strlen($kalimat);
$karakter = "i";
$cari = strpos($kalimat,
$karakter);
$kapital = strtoupper($kalimat);
$kecil = strtolower($kalimat);
date_default_timezone_set('Asia/Jakarta');
$tanggal = date("l, d F Y G:i:s");
$temp = explode(' ',$kalimat);
for ($i=0; $i < sizeof($temp); $i++) {
# code...
echo $temp[$i]."<br>";
}
$hubung = implode('', $temp);
echo "implode : $hubung";
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<br><br>
<table border="2" align="center">
<tr>
<td>Kalimat</td>
<td>STRLEN</td>
<td>STRPOS</td>
<td>STRTOUPPER</td>
<td>STRTOLOWER</td>
<td>DATE</td>
</tr>
<tr>
<td><?php echo "$kalimat"; ?></td>
<td><?php echo "$jumlah"; ?></td>
<td><?php echo "$cari"; ?></td>
<td><?php echo "$kapital"; ?></td>
<td><?php echo "$kecil"; ?></td>
<td><?php echo "$tanggal"; ?></td>
</tr>
</table>
</body>
</html>