Typed
Hypertext
Processor

Syntax, stdlib and types for PHP


                    
                        val person_id = POST::get("person_id") ?: die
                        
                        match Person::find_by_id(person_id)
                        | Ok(person)
                        {
                            JSON::encode(person)
                        }
                        | Err(e)
                        {
                            JSON::encode(Obj {"error": e})
                        }                        
                    
                
Learn Install