Exemplo n.º 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)));
}
Exemplo n.º 2
0
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>';
echo '<p>&bull; fmRound ( 123.456, -2 ) = ' . fmRound(123.456, -2) . '</p>';
echo '<p>&bull; fmSeconds ( \'3:51:22 PM\' ) = ' . fmSeconds('3:51:22 PM') . '</p>';
echo '<p>&bull; fmSerialIncrement ( \'abc12\', 1 ) = ' . fmSerialIncrement('abc12', 1) . '</p>';
echo '<p>&bull; fmSerialIncrement ( \'abc12\', 7 ) = ' . fmSerialIncrement('abc12', 7) . '</p>';
echo '<p>&bull; fmSerialIncrement ( \'abc12\', -1 ) = ' . fmSerialIncrement('abc12', -1) . '</p>';
echo '<p>&bull; fmSerialIncrement ( \'abc12\', 1.2 ) = ' . fmSerialIncrement('abc12', 1.2) . '</p>';
echo '<p>&bull; fmStripTags ( \'This is &lt;bold&gt;bold text&lt;/bold&gt;. Or not.\' ) = ' . fmStripTags('This is <bold>bold text</bold>. Or not.') . '</p>';
echo '<p>&bull; fmStripTags ( \'This is a &lt;a href="http://www.test.com/"&gt;link&lt;/a&gt;. Or not.\' ) = ' . fmStripTags('This is <a href="http://www.test.com/">link</a>. Or not.') . '</p>';
echo '<p>&bull; fmSubstitute ( \'Xframe\', "ram", "stu" ) = ' . fmSubstitute('Xframe', "ram", "stu") . '</p>';
echo '<p>&bull; fmTime ( 10, 51, 22 ) = ' . fmTime(10, 51, 22) . '</p>';
echo '<p>&bull; fmTimestamp ( fmGetAsDate ( \'5/1/2007\' ), fmGetAsTime ( \'10:51:22\' ) ) = ' . fmTimestamp(fmGetAsDate('5/1/2007'), fmGetAsTime('10:51:22')) . '</p>';
echo '<p>&bull; fmTrim ( \' This is a test. \' ) = ' . fmTrim(' This is a test. ') . '</p>';
echo '<p>&bull; fmTruncate ( -14.6, 0 ) = ' . fmTruncate(-14.6, 0) . '</p>';
echo '<p>&bull; fmTruncate ( 123.456, 2 ) = ' . fmTruncate(123.456, 2) . '</p>';
echo '<p>&bull; fmTruncate ( 123.456, 4 ) = ' . fmTruncate(123.456, 4) . '</p>';
echo '<p>&bull; fmTruncate ( 29343.98, -3 ) = ' . fmTruncate(29343.98, -3) . '</p>';
echo '<p>&bull; fmUpper ( \'This is a test.\' ) = ' . fmUpper('This is a test.') . '</p>';