Skip to content

Instantly share code, notes, and snippets.

@dikiwidia
Last active January 31, 2021 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dikiwidia/25aa9c3cd4e1afb68ca11d18fa2e899f to your computer and use it in GitHub Desktop.
Save dikiwidia/25aa9c3cd4e1afb68ca11d18fa2e899f to your computer and use it in GitHub Desktop.
<?php
// init
$flow = [
'pertama' => 'Bismillah dan Perencanaan',
'kedua' => 'Lamaran',
'ketiga' => 'Akad dan Resepsi'
];
$status = "Lajang";
$days = 365;
$plan = true;
// flow
echo $status;
echo "<br />";
if($plan){
for($i=0;$i<$days;$i++){
if($i == 30){
echo $flow['pertama'] .'<br />';
}
if($i == 70){
echo $flow['kedua'] .'<br />';
}
if($i == 150){
echo $flow['ketiga'] .'<br />';
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment