Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby join hash to string

{:a => 100, :b => 200}.map{|k,v| "#{k}=#{v}"}.join('&')
# => "a=100&b=200"
 
PREVIOUS NEXT
Tagged: #ruby #join #hash #string
ADD COMMENT
Topic
Name
4+9 =