Skip to content

Instantly share code, notes, and snippets.

preg_match("/^(.+)\.(.+)$/", $file_name, $m);
$file_prefix = $m[1];
$file_suffix = $m[2];
substr_replace($string ,"",-1);
<? if (basename($_SERVER["SCRIPT_FILENAME"]) == "index.htm"){ ?>
overflow-y: scroll;
overflow-x: hidden;
$pos = strpos($haystack,$needle);
if($pos === false) {
// string needle NOT found in haystack
}
else {
// string needle found in haystack
}
onmouseover="document.getElementById('id').style.display= 'block';" onmouseout="document.getElementById('id').style.display= 'none';"
function truncateString($str, $max, $rep = '...') {
if(strlen($str) > $max) {
$leave = $max - strlen($rep);
return substr_replace($str, $rep, $leave);
} else {
return $str;
}
}
if(window.attachEvent) {
window.attachEvent('onload', yourFunctionName);
} else {
if(window.onload) {
var curronload = window.onload;
var newonload = function() {
curronload();
yourFunctionName();
};
window.onload = newonload;
$message_to = "jcampo@quasars.com";
$message_from = "info@byf.com";
$message_subject = "Tax Reminders Test";
$message_body = $test_email;
$headers = 'From: '.$message_from. "\r\n" .
'Reply-To: '. $message_from . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($message_to, $message_subject, $message_body, $headers);