PHP linkinfo() Function Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report The linkinfo() function is an inbuilt function in PHP that retrieves information related to the links. This function checks the link is pointed to by the path that exists. Syntax: linkinfo(string $path)Parameter: This function accepts one parameter that is described below: $path: This parameter specifies the link for the file path.Return Values: The 'linkinfo()' function returns information about link a file link. It will return a positive integer value on success, otherwise, return -1 for not found the link. Example 1: The following code demonstrates the linkinfo() function. PHP <?php echo linkinfo('/dev'); ?> Note: Output will be different according to your system. Output: 5 Example 2: The following code demonstrates the linkinfo() function. PHP <?php $num = linkinfo('/gfg') ; if($num == -1){ echo "Link is not existing"; } else { echo "Link is existing" ; } ?> Output: Link is existing Reference: https://www.php.net/manual/en/function.linkinfo.php Comment More infoAdvertise with us Next Article PHP linkinfo() Function N neeraj3304 Follow Improve Article Tags : PHP PHP-function PHP-Filesystem Similar Reads PHP | gd_info() Function The gd_info() function is an inbuilt function in PHP which is used to retrieve the information about the currently installed GD library. This function returns the information about the version and capabilities of the installed GD library. Syntax: array gd_info( void ) Parameters: This function does 2 min read PHP | pathinfo( ) Function The pathinfo() is an inbuilt function which is used to return information about a path using an associative array or a string. The returned array or string contains the following information:  Directory nameBasenameExtension The path and options are sent as a parameters to the pathinfo() function a 2 min read PHP | inet_ntop() Function The inet_ntop() function is an inbuilt function in PHP which converts a 32bit IPv4 or 128bit IPv6 address into a readable format. Syntax: string inet_ntop( string $ip_address ) Parameter: This function accepts one parameter as mentioned above and described below: $ip_address: It is required paramete 1 min read PHP | idate() Function The idate() function is an inbuilt function in PHP which is used to format a local time/date as an integer. The $format and $timestamp are sent as parameters to the idate() function and it returns an integer formatted according to the specified format using the given timestamp. Unlike the function d 2 min read PHP in_array() Function The in_array() function in PHP is a built-in function that is used to check if a specific value exists within an array and returns a boolean result. Returns true if the value is found and false if the value is not found.Syntax:bool in_array(mixed $needle, array $haystack, bool $strict = false)In thi 3 min read Like