الفرق بين المراجعتين لصفحة: «PHP/Directory/read»
طلا ملخص تعديل |
لا ملخص تعديل |
||
| سطر 7: | سطر 7: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
public string Directory::read ([ resource $dir_handle ] ) | public string Directory::read ([ resource $dir_handle ] ) | ||
</syntaxhighlight>يشبه هذا التابع تمامًا الدالة <code>readdir()</code> باستثناء أنَّ القيمة الافتراضيَّة للمعامل <code>dir_handle</code> هي <code>$this</code>. | </syntaxhighlight>يشبه هذا التابع تمامًا الدالة <code>[[PHP/readdir|readdir()]]</code> باستثناء أنَّ القيمة الافتراضيَّة للمعامل <code>dir_handle</code> هي <code>$this</code>. | ||
== مصادر == | == مصادر == | ||
مراجعة 02:44، 28 أبريل 2018
(PHP 4, PHP 5, PHP 7)
يقرأ التابع Directory::read() عنصرًا واحدًا من مقبض المجلَّد ويعيده.
الوصف
public string Directory::read ([ resource $dir_handle ] )
يشبه هذا التابع تمامًا الدالة readdir() باستثناء أنَّ القيمة الافتراضيَّة للمعامل dir_handle هي $this.