Get value inside a string

Get value inside a string

I can take from within an array a string that refers to a table row that has some columns, and assigned it to a variable. How do I access this variable and get the value of a column cell defined by a class? Example:

  1. // Access var $ ws_cell_in and get column value ?
  2. $ws_cell_in = $ws_array_row [ $ws_index_in ];