Pseudocode is a description of a computer programming algorithm that uses the structural conventions of programming languages, but omits detailed subroutines or language-specific syntax. An example of how pseudocode differs from regular code is below. Regular code (written in PHP): <?php. if (is_valid($cc_number)) {. execute_transaction($cc_number, $order); } else {.