Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array:8 [
- "text" => "rt_field"
- "title" => "rt_field"
- "type_id" => "rt_attr_uint"
- "author_id" => "rt_attr_uint"
- "created_at" => "rt_attr_timestamp"
- "recommended_at" => "rt_attr_timestamp"
- "deleted_at" => "rt_attr_timestamp"
- "feeds" => "rt_attr_multi"
- ]
- array:8 [
- "text" => "rt_attr_string"
- "text_txt" => "rt_field"
- "title" => "rt_attr_string"
- "title_txt" => "rt_field"
- "type_id" => "rt_attr_uint"
- "author_id" => "rt_attr_uint"
- "created_at" => "rt_attr_timestamp"
- "recommended_at" => "rt_attr_timestamp"
- "deleted_at" => "rt_attr_timestamp"
- "feeds" => "rt_attr_multi"
- ]
- foreach ($array_param as $key => $value) {
- if ($value == 'rt_field'){
- $array_param_second[$key] = 'rt_attr_string';
- $array_param[$key] = $key.'_txt';
- }
- }
Add Comment
Please, Sign In to add comment