php - Illegal string offset error but value is there when array is dumped -
php - Illegal string offset error but value is there when array is dumped -
can help me please? have method trying utilize values array. have...
function createfdf ( $data ) { $data = $this->getfdfheader() . $this->getfdfcontent( $data ) . $this->getfdffooter( $data ); $filename = $data['filename'] . '.fdf'; if ( $fp = fopen( $filename, 'w' ) ) { fwrite( $fp, $data, strlen( $data ) ); homecoming fclose( $fp ); } }
running illegal string offset, if die , dump $data['filename'] outputs looking for.
what doing wrong?
thanks
i've seen i'm doing, i'm overwriting $data variable.
i should sleep.
php arrays
Comments
Post a Comment