Skip to content

Instantly share code, notes, and snippets.

View KelvinVenancio's full-sized avatar
🎯
Focusing

Kelvin V. Soares KelvinVenancio

🎯
Focusing
View GitHub Profile
@KelvinVenancio
KelvinVenancio / name.php
Last active August 29, 2015 14:20
Consumindo API do Rails com PHP
<?php
$url = "http://localhost:3000/tasks";
$contents = file_get_contents($url);
$contents = utf8_encode($contents);
$results = json_decode($contents, true);
$info = $results;
foreach ($info as $r) {
echo "Nome: $r[name] <br />";