We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
u just replace substr(city,1,1) it will work properly and in substr() first parameter represent string on which operation perform and second one parameter represend length of character and third one parameter represent index of character in string
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 9
You are viewing a single comment's thread. Return to all comments →
u just replace substr(city,1,1) it will work properly and in substr() first parameter represent string on which operation perform and second one parameter represend length of character and third one parameter represent index of character in string