Guest User

Untitled

a guest
Nov 18th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $result = Hash::combine(
  2. $typeList,
  3. '{n}[is_reading=1].id',
  4. [
  5. '%s - %s',
  6. '{n}[is_reading=1].name',
  7. '{n}[is_reading=1].description'
  8. ]
  9. );
  10.  
  11. array:2 [▼
  12. 0 => array:7 [▼
  13. "id" => 1
  14. "name" => "Poor"
  15. "description" => null
  16. "type" => 1
  17. "is_reading" => 1
  18. "is_writing" => 1
  19. "is_speaking" => 1
  20. ]
  21. 1 => array:7 [▶]
  22. ]
  23.  
  24. ErrorException in Hash.php line 558:
  25. vsprintf(): Too few arguments
Add Comment
Please, Sign In to add comment