View szenteles.eleklaszlo.hu
<!DOCTYPE html> | |
<html lang="hu"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Elek László SJ papszentelése</title> | |
<meta name="Description" content="2018. augusztus 25-én délután háromkor Ternyák Csaba érsek atya pappá szentel Miskolcon." /> | |
<meta name="author" content="Elek László SJ jezsuita szerzetes"> |
View gist:34abad30800ba69ce24b
<?php | |
$json = file_get_contents('http://szentiras.hu/api/idezet/1Kor13,10-13'); | |
$array = json_decode($json); | |
print_r($array); | |
?> |
View gist:84819edbf4dea7a67e2e
$date = "20".sprintf('%02d',rand(0,22))."-".sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
$start = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
$end = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
echo "Is ".$date." between ".$start." and ".$end."? "; | |
if("2000".$start < "2000".$end) { | |
$year = date('Y',strtotime($date)); |