Business
Jobs
  • About Us
  • Solutions
    • Candidates
      Highly qualified candidates in 48h.
    • Assessments
      500+ technical and psychological assessments, plus anti-fraud system.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Pay in 15+ LATAM countries without setting up a local entity.
  • Pricing
  • Jobs

0

426
Views
¿Cómo formatear un json desde una URL en php?

Obtuve un JSON de una URL como esta:

http://myweb.com/ws_clc/ws_info.php?uid=77317

JSON:

 { "status":1, "info":[ { "uid":"77317", "name":"Jack", "lastname":"Black", "email":"jackblack@mail.com" } ] }

Necesito formatear ese JSON en HTML. ¿Cómo puedo hacer eso?

¡¡¡GRACIAS!!! Lo hice así:

 <?php $uid =$_GET['uid']; $json = file_get_contents('http://myweb.com/ws_clc/ws_info.php?uid='.$uid); $obj = json_decode($json); $uid= $obj->info[0]->uid; $name = $obj->info[0]->name; $lastname = $obj->info[0]->lastname; echo $name; echo $lastname; ?>
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!