title: How to have a simple array without key from an array key=>value?
body: <p>I have an array like this :
   <code>array("Peter"=&gt;"35", "Ben"=&gt;"37", "Joe"=&gt;"43");</code>
  and would like to get only my values, for example here : </p>
  
  <p>simpleTab=<code>array("35","37","43");</code> </p>
  
  <p>or otherwise like this, it should be better for me to get a list :</p>
  
  <pre><code>simpleList=["35";"37";"43"]
  </code></pre>
  
  <p>I'm creating a function because I'll need it several times so here it is :</p>
  
  <pre><code>$simpleArray=array(); //don't know if this should be array, i'd like to have a list
  
  foreach($valueAssoc as $key =&gt; $value{//array_push($simpleArray,$value);//NO it returns an array with keys 0 , 1 , etc
      //$simpleArray[]=$value; //same ! I don't want any keys
  
      //I want only an array without any index or key "tableau indexé sans clef"
      echo $value;
      //would like to have some method like this :
      $simpleArray.add($value);//to add value in my list -&gt; can't find the php method
  </code></pre>