original_string: public function writeArray(&$array)
      {
          $length = count($array);
          if (!$length < 0) {
              // write the length of the array
              $this->_stream->writeLong(0);
          } else {
              // Write the length of the numeric array
              $this->_stream->writeLong($length);
              for ($i=0; $i<$length; $i++) {
                  $value = isset($array[$i]) ? $array[$i] : null;
                  $this->writeTypeMarker($value);
              }
          }
          return $this;
      }
code: public function writeArray(&$array)
      {
          $length = count($array);
          if (!$length < 0) {
              // write the length of the array
              $this->_stream->writeLong(0);
          } else {
              // Write the length of the numeric array
              $this->_stream->writeLong($length);
              for ($i=0; $i<$length; $i++) {
                  $value = isset($array[$i]) ? $array[$i] : null;
                  $this->writeTypeMarker($value);
              }
          }
          return $this;
      }
code_tokens: public function writeArray ( & $ array ) { $ length = count ( $ array ) ; if ( ! $ length < 0 ) { // write the length of the array $ this -> _stream -> writeLong ( 0 ) ; } else { // Write the length of the numeric array $ this -> _stream -> writeLong ( $ length ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ value = isset ( $ array [ $ i ] ) ? $ array [ $ i ] : null ; $ this -> writeTypeMarker ( $ value ) ; } } return $ this ; }
docstring: Write a standard numeric array to the output stream. If a mixed array
  is encountered call writeTypeMarker with mixed array.
  
  @param array $array
  @return Zend_Amf_Parse_Amf0_Serializer
docstring_tokens: Write a standard numeric array to the output stream . If a mixed array is encountered call writeTypeMarker with mixed array .