How to detect Safari browser

PHP, JS: How to detect Safari browser

PHP Example: Result: Javascript Recent search terms:https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1821 TIgXZFogY8Cu0V88eyRKPyLpWVlTT8M7q9TVZhkuHUWym9llc8M-Ec3MwjuoFzS8 08c95decfb1e7f73b0452b621c363465fc4423e0&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXmehttps://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1823 eyXqrRCXPk4H6kOyP5BY84z5Yx2xhMYpTVwJJMt5NVUibCMDtD1dufSULswdbxtN 0ba784d2be57eb76c891d0bfda3bd8cea5a4ccf2&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXmehttps://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1824 fJW4AbnCVRLxhTdpBVNz4GRWfASOEnE4MqPqMoGk1awh7nrcXdFSBdjfoyigVOmH eefc134cdea1e333133ae191796f844244402185&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXmehttps://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1824 xN8CgfAk2B_kWFeyyRydlKJqeSkrgQiFIMDxRMjgitWWeuj9_-RLqTWHzhtgJ14P 4382a59f1537d3f41fd950038bbfdd0c31f12caf&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXmehttps://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1825…