Perintah Kawalan Pergerakan (PKP) hari ke-116

php Basic Functions

Ini adalah senarai beberapa function asas dalam php.

1. Informasi php configuration.

phpinfo()

2. Set default timezone.

date_default_timezone_set(timezone)

3. Dapatkan timestamp semasa.

time()

4. Format tarikh dan masa.

date(format,timestamp)

5. Papar bilangan titik perpuluhan.

number_format(number,decimals,decimalpoint,separator)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.