Jelajahi Sumber

Add files via upload

Daniele Bonini (皮夕) | 5mode.com | WebDev | Translator 3 tahun lalu
induk
melakukan
fccd37656e
1 mengubah file dengan 11 tambahan dan 0 penghapusan
  1. 11 0
      index.php

+ 11 - 0
index.php

@@ -118,6 +118,17 @@ require FUNCTIONS_PATH . DIRECTORY_SEPARATOR . "/func.casp-string-polyfills.inc"
   echo(year($v)."<br><br>");
 ?> 
 
+<pre style="width:500px">
+  // year() example #3
+  echo(year()."&lt;br&gt;");
+</pre>
+
+<b>Result:</b><br>
+<?php 
+  echo(year()."<br><br>");
+?> 
+
+
 <pre style="width:500px">
   // month() example
   $v = new DateTime("09/27/2021");