You need to fill a dictionary in order to lookup for the words you want to translate.
Take a look at this answer, the code is meant to filter bad words, but should work in your case.
More Related Contents:
- How is this not passing PHP values to JS and vice-versa?
- Replace first word of sentence to the end if it is “the” [closed]
- About how does mysqli_query() Function and mysqli_fetch_array($result) work?
- Parse query string into an array
- HTTPS and SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, CA is OK
- How can I put strings in an array, split by new line?
- file_get_contents(“php://input”) or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?
- How to parse SOAP XML?
- How to pass extra variables in URL with WordPress
- How to create and download a csv file from php script?
- php variable in html no other way than:
- Best way to check if mysql_query returned any results?
- How can I get the client’s IP address in a PHP webservice? [duplicate]
- Performance of try-catch in php
- dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib with anything php related
- Pre-declare all private/local variables?
- Stop caching for PHP 5.5.3 in MAMP
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- Understanding IoC Containers and Dependency Injection
- PHP filesize MB/KB conversion [duplicate]
- How to echo XML file in PHP
- a better approach than storing mysql password in plain text in config file?
- In PHP, how to detect the execution is from CLI mode or through browser ? [duplicate]
- Pull all images from a specified directory and then display them
- Redirecting to previous page after login?
- json decode in php
- How to set an option from multiple options or array with different values to views as selected in select box using PHP
- HEREDOC Returning unexpected end
- adding two time values of similar formats using php
- Generate download file link in PHP [duplicate]