Belirli bir biçimde bir dize ayrıştırmak çalışıyorum ve ben gerçekten bunu yapmak için iyi bir işlevi bulamıyorum keşfetmek için şaşırdım.
The only one I found is strtotime and it doesn't fit as it guesses the date format. I really don't trust the "guess" part. Moreover my string input is in a french format (dd/mm/aaaa) which it seems that it's not well understood (it parses american formats like mm/dd/aaaa).
What I'm looking for is a function that take in input a date string and a format to parse. I could do it myself with a regexp but I can't believe that it doesn't already exist.
Buldum:
- DateTime::createFromFormat(). Ama bu sadece PHP 5.3 ile çalışmak ve ben PHP sürümü (5.2) yükseltme gücü yok
- strptime(). Bu yöntem, ne istediğiniz ama windows platformunda uygulanmadı (arada:? WTF)
Herhangi bir öneri?