PHP ကျူတိုရီရယ်

PHP ပင်မစာမျက်နှာ PHP မိတ်ဆက် PHP ထည့်သွင်းပါ။ PHP Syntax PHP မှတ်ချက်များ PHP Variables များ PHP Echo / Print PHP Data အမျိုးအစားများ PHP စာတန်းများ PHP နံပါတ်များ PHP သင်္ချာ PHP Constants PHP Operator များ PHP If...Else...Elseif PHP Switch PHP Loops PHP လုပ်ဆောင်ချက်များ PHP Arrays PHP Superglobals PHP RegEx

PHP Forms

PHP Form ကိုင်တွယ်ခြင်း။ PHP Form Validation PHP Form လိုအပ်ပါသည်။ PHP Form URL/E-mail PHP Form ပြီးပါပြီ။

PHP အဆင့်မြင့်

PHP နေ့စွဲနှင့် အချိန် PHP ပါဝင်ပါတယ်။ PHP ဖိုင်ကိုင်တွယ်ခြင်း PHP ဖိုင်ကို ဖွင့်/ဖတ်ပါ။ PHP ဖိုင်ကို ဖန်တီး/ရေးပါ။ PHP ဖိုင်ကို တင်ခြင်း။ PHP Cookies PHP စက်ရှင်များ PHP Filters PHP Filters Advanced PHP ပြန်ခေါ်ခြင်းလုပ်ဆောင်ချက်များ PHP JSON PHP ခြွင်းချက်

PHP OOP

PHP OOP ဆိုတာဘာလဲ PHP အတန်းများ/အရာဝတ္ထုများ PHP Constructor PHP Destructor PHP Access Modifiers PHP Inheritance PHP Constants PHP Abstract အတန်းများ PHP မျက်နှာပြင်များ PHP လက္ခဏာများ PHP Static Methods PHP Static Properties PHP Namespaces PHP Iterables

MySQL ဒေတာဘေ့စ်

MySQL ဒေတာဘေ့စ် MySQL ချိတ်ဆက်မှု MySQL သည် DB ကိုဖန်တီးပါ။ MySQL ဇယားဖန်တီးပါ။ MySQL သည် Data ကိုထည့်သွင်းပါ။ MySQL နောက်ဆုံး ID ကိုရယူပါ။ MySQL တွင် Multiple ထည့်သွင်းပါ။ MySQL ပြင်ဆင်ထားသည်။ MySQL Data ကို ရွေးပါ။ MySQL ဘယ်မှာလဲ။ MySQL Order By MySQL က Data တွေကို ဖျက်လိုက်ပါ။ MySQL အပ်ဒိတ်ဒေတာ MySQL ကန့်သတ်ဒေတာ

PHP XML

PHP XML ပါဆာများ PHP SimpleXML Parser PHP SimpleXML - ရယူပါ။ PHP XML Expat PHP XML DOM

PHP - AJAX

AJAX နိဒါန်း AJAX PHP AJAX ဒေတာဘေ့စ် AJAX XML AJAX တိုက်ရိုက်ရှာဖွေမှု AJAX စစ်တမ်း

PHP ဥပမာများ

PHP ဥပမာများ PHP Compiler PHP Quiz PHP လေ့ကျင့်ခန်းများ PHP Certificate

PHP အ ကိုးအကား

PHP ခြုံငုံသုံးသပ်ချက် PHP Array PHP ပြက္ခဒိန် PHP နေ့စွဲ PHP လမ်းညွှန် PHP အမှား PHP ခြွင်းချက် PHP ဖိုင်စနစ် PHP Filter PHP FTP PHP JSON PHP သော့ချက်စာလုံးများ PHP Libxml PHP Mail PHP သင်္ချာ PHP ထွေ PHP MySQLi PHP ကွန်ရက် PHP Output Control PHP RegEx PHP SimpleXML PHP Stream PHP String PHP Variable ကိုင်တွယ်ခြင်း။ PHP XML Parser PHP Zip PHP အချိန်ဇုန်များ

PHP date_create_from_format() လုပ်ဆောင်ချက်

❮ PHP နေ့စွဲ/အချိန် အကိုးအကား

ဥပမာ

သတ်မှတ်ထားသော ဖော်မတ်အရ ဖော်မတ်လုပ်ထားသည့် DateTime အရာဝတ္ထုအသစ်ကို ပြန်ပေးပါ။

<?php
$date=date_create_from_format("j-M-Y","15-Mar-2013");
?>

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

date_create_from_format() လုပ်ဆောင်ချက်သည် သတ်မှတ်ထားသော ဖော်မတ်အရ သတ်မှတ်ထားသည့် ဖော်မတ်ဖြင့် ပြုလုပ်ထားသည့် DateTime အရာဝတ္ထုအသစ်ကို ပြန်ပေးသည်။


အထားအသို

date_create_from_format(format, time, timezone)

ကန့်သတ်တန်ဖိုးများ

Parameter Description
format Required. Specifies the format to use. The following characters can be used in the format parameter string:
  • d - Day of the month; with leading zeros
  • j - Day of the month; without leading zeros
  • D - Day of the month (Mon - Sun)
  • l - Day of the month (Monday - Sunday)
  • S - English suffix for day of the month (st, nd, rd, th)
  • F - Monthname (January - December)
  • M - Monthname (Jan-Dec)
  • m - Month (01-12)
  • n - Month (1-12)
  • Y - Year (e.g 2013)
  • y - Year (e.g 13)
  • a and A - am or pm
  • g - 12 hour format without leading zeros
  • G - 24 hour format without leading zeros
  • h - 12 hour format with leading zeros
  • H - 24 hour format with leading zeros
  • i - Minutes with leading zeros
  • s - Seconds with leading zeros
  • u - Microseconds (up to six digits)
  • e, O, P and T - Timezone identifier
  • U - Seconds since Unix Epoch
  • (space)
  • # - One of the following separation symbol: ;,:,/,.,,,-,(,)
  • ? - A random byte
  • * - Random bytes until next separator/digit
  • ! - Resets all fields to Unix Epoch
  • | - Resets all fields to Unix Epoch if they have not been parsed yet
  • + - If present, trailing data in the string will cause a warning, not an error
time Required. Specifies a date/time string. NULL indicates the current date/time
timezone Optional. Specifies the timezone of time. Default is the current timezone


နည်းပညာဆိုင်ရာအသေးစိတ်

ပြန်ပို့တန်ဖိုး- အောင်မြင်မှုတွင် DateTime အရာဝတ္ထုအသစ်ကို ပြန်ပေးသည်။ ရှုံးနိမ့်မှုအပေါ် မှားသည်။
PHP ဗားရှင်း- 5.3+

❮ PHP နေ့စွဲ/အချိန် အကိုးအကား