Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( !is_null($deco['creators']) )
- {
- $director = array();
- $actor = array();
- $producer = array();
- $voice_director = array();
- $voice = array();
- $writer = array();
- $operator = array();
- $composer = array();
- $design = array();
- $editor = array();
- foreach( $deco['creators'] as $key => $value )
- {
- if( $value )
- {
- for( $i = 0, $k = 0; $i < count($value); $i++ )
- {
- if( !$value[$i]['name_person_ru'] && !$value[$i]['name_person_en'] )
- continue;
- $title_ = ( !$value[$i]['name_person_ru'] ) ? $value[$i]['name_person_en'] : $value[$i]['name_person_ru'];
- ${$key}[] = $title_;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement