explode - String manipulation and Date format in PHP -


i have line in code this:

$foldertitle = displayname(getalbumname($foo)); 

this call album's name in image gallery. album's names this

2017.03.14 here

i need show this:

something here
14/03/2017

how convert date format , rearrange lines order follow requirements?

sorry answers bellow didn't make effect.

$name = "2017.03.14 here"; echo substr($name, 10) . '<\br>'. str_replace(".", "/", substr($name, 0, 10)); 

something ? (arround 1 min write...)

if "2017.03.14 here" (displayname(getalbumname($folder,$items[$i])).$fc

then :

$name = (displayname(getalbumname($folder,$items[$i])).$fc; $foldertitle = '<div class="imagetitle">'.substr($name, 10) . '<\br>'. str_replace(".", "/", substr($name, 0, 10)).'</div>'; 

wasn't hard implement, sorry rude seams don't effort


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -