Guest User

Untitled

a guest
Dec 11th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. array:8 [
  2. "text" => "rt_field"
  3. "title" => "rt_field"
  4. "type_id" => "rt_attr_uint"
  5. "author_id" => "rt_attr_uint"
  6. "created_at" => "rt_attr_timestamp"
  7. "recommended_at" => "rt_attr_timestamp"
  8. "deleted_at" => "rt_attr_timestamp"
  9. "feeds" => "rt_attr_multi"
  10. ]
  11.  
  12. array:8 [
  13. "text" => "rt_attr_string"
  14. "text_txt" => "rt_field"
  15. "title" => "rt_attr_string"
  16. "title_txt" => "rt_field"
  17. "type_id" => "rt_attr_uint"
  18. "author_id" => "rt_attr_uint"
  19. "created_at" => "rt_attr_timestamp"
  20. "recommended_at" => "rt_attr_timestamp"
  21. "deleted_at" => "rt_attr_timestamp"
  22. "feeds" => "rt_attr_multi"
  23. ]
  24.  
  25. foreach ($array_param as $key => $value) {
  26. if ($value == 'rt_field'){
  27. $array_param_second[$key] = 'rt_attr_string';
  28. $array_param[$key] = $key.'_txt';
  29. }
  30. }
Add Comment
Please, Sign In to add comment