PHP Salt


A little dash of PHP... my collection of php functions

Version: 2.25.5
Last Build: August 06, 2019 13:23pm (PST)

Main Menu

Home

Get PHP Salt


The Functions

array
db
file
graph
html
mail
math
misc
mobile
script
string
system
time
psFileKeyGetVal()
Get a value from a simple Key/Val txt file


Description:

This will return the value from a text file




Usage:


psFileKeyGetVal($fName,$key,{$sepertor})




Example:


$id = "A60244";
psFileKeyGetVal("/tmp/somefile.txt",$id);






Code:


function psFileKeyGetVal($wFile,$key,$d="=")
{
$ary = psFileKeyVal($wFile,$d);
return $ary[$key];
}


Changlelog:



And a shot out to:

PHP - php.net
Fedora Server - getfedora.com
Shameless ads to pay for site