PHP expert |
|
<?php
$maanden = array();
$maanden[01] = "Januari";
$maanden[02] = "Februari";
$maanden[03] = "Maart";
$maanden[04] = "April";
$maanden[05] = "Mei";
$maanden[06] = "Juni";
$maanden[07] = "Juli";
$maanden[08] = "Augustus";
$maanden[09] = "September";
$maanden[10] = "Oktober";
$maanden[11] = "November";
$maanden[12] = "December";
$datum = date("d-m-Y H:i", $array['last_login'.$lastlogin.'']);
$explode1 = explode(" ", $datum);
$explode2 = explode("-", $explode1[0]);
echo $explode2[0]." ".$maanden[$explode2[1]]." ".$explode2[2]." ".$explode1[1];
<?php $maanden[01] = "Januari"; $maanden[02] = "Februari"; $maanden[03] = "Maart"; $maanden[04] = "April"; $maanden[05] = "Mei"; $maanden[06] = "Juni"; $maanden[07] = "Juli"; $maanden[08] = "Augustus"; $maanden[09] = "September"; $maanden[10] = "Oktober"; $maanden[11] = "November"; $maanden[12] = "December"; $datum = date("d-m-Y H:i", $array['last_login'.$lastlogin.'']); $explode2 = explode("-", $explode1[0]); echo $explode2[0]." ".$maanden[$explode2[1]]." ".$explode2[2]." ".$explode1[1];
dit hier is dus mijn stukje code, ik wil dus die maand omzetten naar letters ipv cijfers, zonder $maanden[] rond $explode2[1] geeft hij 03 aan, dus dat zou maart moeten worden, maar er staat gewoon niets
|