PHP Salt


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

Version: 2.23.1
Last Build: December 19, 2018 11:03am (PST)

Main Menu

Home

Get PHP Salt


The Functions

array
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:

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