Search Result displaying-like google php
<p>i have an paragraph and user will search inside that and if the search term has 3 matches inside but all are in 3 different places </p>

<p>ex</p>

<blockquote>
  <p>World War II, or the Second World War[1] (often abbreviated WWII or WW2), was a global military conflict lasting from 1939 to 1945 which involved most of the world's nations, including all of the great powers, organised into two opposing military alliances: the Allies and the Axis. It was the most widespread war in history, with more than 100 million military personnel mobilised. In a state of "total war," the major participants placed their entire economic, industrial, and scientific capabilities at the service of the war effort, erasing the distinction between civilian and military resources. Marked by significant action against civilians, including the Holocaust and the only use of nuclear weapons in warfare, it was the deadliest conflict in human history,[2] with over seventy million casualties.</p>
</blockquote>

<p>i have to search "war" so that it should display like</p>

<blockquote>
  <p>World <b>War</b> II, or the Second World War[1].....In a state of "total<b>war</b>,"....</p>
</blockquote>
