I am new to php and am just trying to familiarize myself with php string functions. The code below, would take the string, "bold" and insert a substring at the position 2 characters to the right of where it finds the hyphen.
Can someone show me how you would do this in PHP? Thanks!
<cfset bold = "Vice president - 2125551212">
<cfset insertPos = Find("-",#bold#)-2>
<cfset bold= insert("</b>",#bold#,insertPos)>
<cfoutput><b>#bold#</cfoutput>