php app get user id id function id echo id app get user message to fil

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<?php
app::get("/user/id:id", function ($id) {
echo $id;
});
app::get("/user/message/:to/:filters+", function ($to, $filters = array()) {
print_r($filters);
echo '<br />';
echo "message to " . $to;
})->condition(array("to" => "text"));
app::run();