Пример #1
0
function fmTimestamp($date, $time)
{
    return date("n/j/Y H:i:s A", mktime(fmHour($time), fmMinute($time), fmSeconds($time), fmMonth($date), fmDay($date), fmYear($date)));
}
Пример #2
0
echo '<p>&bull; fmGetAsNumber ( \'PLAT-NO.1234\' ) = ' . fmGetAsNumber('PLAT-NO.1234') . '</p>';
echo '<p>&bull; fmGetAsTime ( \'10:51:22\' ) = ' . fmGetAsTime('10:51:22') . '</p>';
echo '<p>&bull; fmGetAsTimestamp ( \'11/27/1968 10:51:22\' ) = ' . fmGetAsTimestamp('11/27/1968 10:51:22') . '</p>';
echo '<p>&bull; fmGetAsURLEncoded ( \'San Diego\' ) = ' . fmGetAsURLEncoded('San Diego') . '</p>';
echo '<p>&bull; fmGetCurrentDate() = ' . fmGetCurrentDate() . '</p>';
echo '<p>&bull; fmGetCurrentTime() = ' . fmGetCurrentTime() . '</p>';
echo '<p>&bull; fmGetCurrentTimeStamp() = ' . fmGetCurrentTimeStamp() . '</p>';
echo '<p>&bull; fmHour ( \'3:51:22 PM\' ) = ' . fmHour('3:51:22 PM') . '</p>';
echo '<p>&bull; fmInt ( -5.2 ) = ' . fmInt(-5.2) . '</p>';
echo '<p>&bull; fmLeft ( \'Xframe\', 3 ) = ' . fmLeft('Xframe', 3) . '</p>';
echo '<p>&bull; fmLeftWords ( \'This is a test.\', 2 ) = ' . fmLeftWords('This is a test.', 2) . '</p>';
echo '<p>&bull; fmLength ( \'Xframe\' ) = ' . fmLength('Xframe') . '</p>';
echo '<p>&bull; fmLower ( \'This is a test.\' ) = ' . fmLower('This is a test.') . '</p>';
echo '<p>&bull; fmMiddle ( \'Xframe\', 2, 3 ) = ' . fmMiddle('Xframe', 2, 3) . '</p>';
echo '<p>&bull; fmMiddleWords ( \'This is a bigger test.\', 2, 3 ) = ' . fmMiddleWords('This is a bigger test.', 2, 3) . '</p>';
echo '<p>&bull; fmMinute ( \'3:51:22 PM\' ) = ' . fmMinute('3:51:22 PM') . '</p>';
echo '<p>&bull; fmMod ( 27, 11 ) = ' . fmMod(27, 11) . '</p>';
echo '<p>&bull; fmMonth ( \'11/27/1968\' ) = ' . fmMonth('11/27/1968') . '</p>';
echo '<p>&bull; fmMonthName ( \'11/27/1968\' ) = ' . fmMonthName('11/27/1968') . '</p>';
echo '<p>&bull; fmMonthNameShort ( \'11/27/1968\' ) = ' . fmMonthNameShort('11/27/1968') . '</p>';
echo '<p>&bull; fmPatternCount ( \'Xframe\', \'Z\' ) = ' . fmPatternCount('Xframe', 'Z') . '</p>';
echo '<p>&bull; fmPatternCount ( \'This is a test.\', \'a\' ) = ' . fmPatternCount('This is a test.', 'a') . '</p>';
echo '<p>&bull; fmPatternCount ( \'This is a test.\', \'is\' ) = ' . fmPatternCount('This is a test.', 'is') . '</p>';
echo '<p>&bull; fmPatternCount ( \'This is a test.\', \'IS\' ) = ' . fmPatternCount('This is a test.', 'IS') . '</p>';
echo '<p>&bull; fmPosition ( \'Xframe\', "r" ) = ' . fmPosition('Xframe', "r") . '</p>';
echo '<p>&bull; fmPosition ( \'Xframe\', \'Z\' ) = ' . fmPosition('Xframe', 'Z') . '</p>';
echo '<p>&bull; fmProper ( \'this is a test.\' ) = ' . fmProper('this is a test.') . '</p>';
echo '<p>&bull; fmRandom ( 1, 100 ) = ' . fmRandom(1, 100) . '</p>';
echo '<p>&bull; fmRight ( \'Xframe\', 3 ) = ' . fmRight('Xframe', 3) . '</p>';
echo '<p>&bull; fmRightWords ( \'This is a test.\', 2 ) = ' . fmRightWords('This is a test.', 2) . '</p>';
echo '<p>&bull; fmRound ( 123.456, 2 ) = ' . fmRound(123.456, 2) . '</p>';