Finding string in php
- by Roshan
I have a content and i want to search a keyword in that content.
Content
When charting multiple data series, or just to improve the appearance of your charts, you can control the fill for each series in the chart or each item in a series. The fill lets you specify a pattern that defines how Flex draws the chart element. You also use fills to specify the background colors of the chart or bands of background colors defined by the grid lines. Fills can be solid or can use linear and radial gradients. A gradient specifies a gradual color transition in the fill color therefore.
NOw, if the keyword we are searching is "When", it is the starting word so should display as "When charting multiple data ..........."
If the keyword is "draws" , it lies in middle so should be displayed as ".... how Flex draws....."
If the kewyword is "therefore", it is in the last position so should be displayed as ".........transition in the fill color therefore."
Can anyone help me out how to do this in php server script?