string umformatieren

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • string umformatieren

    Hallo,

    ich habe einen String vorliegen der in etwa so aussieht

    "14021984"

    Daraus möchte ich nun "14.02.1984" machen.
    Wie stelle ich das an?
    The Human Mirror - Mein Blog!
    www.sonicsense.de - The future of music!

  • #2
    mit http://www.php.net/substr zum beispiel
    Ich denke, also bin ich. - Einige sind trotzdem...

    Comment


    • #3
      PHP Code:
      $str="12021234";
      $str=wordwrap($str,2,".",1);
      $str[8]=$str[9];
      $str[9]=$str[10];
      $str=substr($str,0,10);
      echo 
      $str
      vielleicht so?
      eval(str_pad(aa|db,4,slarti^~äü_i_)." \"áú¾ïùûä¶³Ðäýï©üèíþç£þé\"^~\"no bugs, only features\";");

      Comment

      Working...
      X