$lastName = #שם משפחה#;
if (strpos($lastName, “כהן”) !== false) { return “גדול”; } else { return “”; }