write a php snippet with preg_replace to replace a character in a string pattern within a json file.
£20-40 GBP
Fullført
Lagt ut nesten 7 år siden
£20-40 GBP
Betalt ved levering
I need to replace the dot '.' in the key of a json key=>value pair array.
dot should only be changed in key's and not in the values, so the decimal place in values is not affected.
For example, changing . to _
Original json
{"value": { "U.13-17": 134556, "U.18-24": 1072439, "U.25-34": 5259630, "U.35-44": 475479.6, "U.45-54": 107924.2}
will become
{"value": { "U_13-17": 134556, "U_18-24": 1072439, "U_25-34": 5259630, "U_35-44": 475479.6, "U_45-54": 107924.2}
using php preg_replace() function, define the 'search' and 'replace' parameters as regular expression to achieve changing '.' to '_' in key fields.
Hi
We can discuss pricing over chat.I read your project description
I got 100% in php and wordpress and HTML freelancer certification exams it shows my knowledge and experience.
For detailed Discussion please come on chat.
Waiting for Your Positive Response.
Best Regards
CoderCrew
Dear Project Owner,
"Just want to share that for this kind of small projects I prefer to first finish the job and then move to the formalities like award and payment and that is why I always ask for On Completion milestone to maintain client trust."
I read through the job details extremely carefully and I am absolutely sure that I can do the project very well, I would love to work on your project. Firstly would like to share about my experience that I am working as a software developer from last 5+ years, it includes industrial + freelancing experience. I have faced many challenges in my IT career and I am sure it will used in right place.
- I know what you are looking for, and I am confident I can fulfil your expectations
- I can complete your project on time and within your budget.
- I won't disappoint you in any stage of project development and will provide you quality work as expected here, and will keep you posted with the updates on daily basis.
- I am working for client satisfaction instead of just earning and also believe that if you are happy and satisfied with my work then earning will be automatically increased day by day so its not as important as your satisfaction.
I am sure on completion of this project you will hire me again if you have any other project in future.
I hope to get positive response from your side.
Best Regards
Kapil
Hi
I just read your requirement.
I have long experience in this field.
I can provide you good solution.
And I can work full time or part time for you.
Thanks