title: PHPExcel str_replace
body: <p>i want to convert my excel hyperlink's path to open links with PHPExcel.</p>
  
  <pre><code>$links = $objPHPExcel-&gt;getActiveSheet()-&gt;getHyperlinkCollection();
  </code></pre>
  
  <p>This method will return an array of hyperlink objects, indexed by cell address; and you could then use array_filter() with an appropriate callback and the ARRAY_FILTER_USE_KEY flag set to extract those within a specific range.</p>
  
  <p>my var_dump($links); output :</p>
  
  <p><a href="https://i.stack.imgur.com/qahHr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qahHr.png" alt="enter image description here"></a></p>
  
  <p>But i dont know how to loop the array of objects with array_filter() function..</p>
  
  <p>I try :</p>
  
  <pre><code> $test = str_replace($links, "file", "mnt");
   var_dump($test);
  </code></pre>
  
  <p>and i got the error above.. Any ideas please ?</p>