User Tools

Site Tools


uphp:functions:findnext

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:findnext [2017/04/05 14:09]
jeff
uphp:functions:findnext [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"><html><span style="font-size:125%;color:green">array +<well size="sm"><html> 
-<span style="color:black"></html>[[findnext]] ( ) +<span style="font-size:125%;color:green">array 
-</well>+<span style="color:black">findnext ( ) 
 +</html></well>
  
 Continue a search to iterate through a list of files Continue a search to iterate through a list of files
Line 17: Line 18:
 None None
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Array<span style="color:black"></b></html> of the next matching file containing the following keys and values: <html><b><span style="color:green">Array<span style="color:black"></b></html> of the next matching file containing the following keys and values:
Line 23: Line 24:
 ^KEY^TYPE^VALUE^ ^KEY^TYPE^VALUE^
 |filename|<html><b><span style="color:green">string</b></html>|Name of the file| |filename|<html><b><span style="color:green">string</b></html>|Name of the file|
-|attributes|<html><b><span style="color:green">int</b></html>|[[os:fat_file_system#attributes|FAT file attributes]]|+|attributes|<html><b><span style="color:green">int</b></html>|[[software:os:fat_file_system#attributes|FAT file attributes]]|
 |filesize|<html><b><span style="color:green">int</b></html>|File size in bytes| |filesize|<html><b><span style="color:green">int</b></html>|File size in bytes|
-|timestamp|<html><b><span style="color:green">int</b></html>|[[os:fat_file_system#timestamps|FAT timestamp of last save]]|+|timestamp|<html><b><span style="color:green">int</b></html>|[[software:os:fat_file_system#timestamps|FAT timestamp of last save]]|
  
 ====Example==== ====Example====
  
-**List details for all files and directories in the /logs directory:**+===List details for all files and directories in the /logs directory===
  
 <code php> <code php>
Line 44: Line 45:
  
 Typical output for the above example (results vary depending on the contents of the /logs directory): Typical output for the above example (results vary depending on the contents of the /logs directory):
 +
 <code> <code>
 [$arr] = Array ( [$arr] = Array (
Line 89: Line 91:
 </code> </code>
  
-====See Also====+====Also See====
  
 [[findfirst()]] - Start searching the current folder for files matching a pattern and attributes [[findfirst()]] - Start searching the current folder for files matching a pattern and attributes
  
-[[timefromfat()]] - Convert a FAT filetime to a native Linux timestamp+[[timefromfat()]] - Convert a FAT filetime to a Linux Timestamp
  
-[[strftime()]] - Format the passed time using the format <html><b><span style="color:green">string<span style="color:black"></b></html>+[[strftime()]] - Format a Linux Timestamp using format <html><b><span style="color:green">string</b></html>
  
-[[chdir()]] - Change uPHP'current directory+[[chdir()]] - Change the current directory
  
 [[file_exists()]] - Check if a file exists [[file_exists()]] - Check if a file exists
uphp/functions/findnext.1491401371.txt.gz · Last modified: 2021/09/13 05:56 (external edit)