# [PHP], 46 bytes No PHP answer on this yet, so here's the easy one: <!-- language-all: lang-php --> <?=array_sum(array_map(ord,str_split($argn))); [Try it online!][TIO-jx4sopl4] [PHP]: https://php.net/ [TIO-jx4sopl4]: https://tio.run/##fYxbb4IwAEb/SpkFWnHitsSJN6aCizHTLJrpIgodUyAg1LZ4S/zt7va@ty8553w0pNemSUMKIGFBClpgE6wFR5OpNRjhBtB1wKNtnhCxBj/WbR9EKc0FMNvfXYswRk4uz7fob20JRRn7LHHBXE6TSKDfW4xx43rd6XItTGl7Kp9M9TD6cC4lI2YzoFiGuhzCtJGUH8aasIuwWHa7Ky49xY7SS@r2@O6c1fjb0d53j73Mj92Bdp9VwWk9L1bmu7qYrDZYkh5bkoiNYbNa0G0v5shS4Rk61Y6vvUyVBV8s3XfkNQP55iD7M9XzlR22YKXQg6/Pm7bZgRE57P3SxTMk9D/9Ag "PHP – Try It Online" $ echo Hello World!|php -F addascii.php 1085 ### More non-competing answers: **48 bytes** Iterative: <!-- language-all: lang-php --> foreach(str_split($argn)as$s)$x+=ord($s);echo$x; [Try it online!][TIO-jx4ubk48] [PHP]: https://php.net/ [TIO-jx4ubk48]: https://tio.run/##fYzbboIwAEB/pcwCRZy4LXEiXqbAFmOmWTTTxQuwDoSAtNCqaOK3s8sH7O0k5@TQkJadPg0pgF6@S0EXBDufMzSbW6OJYgBNAyzaHxKP@@C3un0GUUoPvAxI7ns4RIznDqNJxNHfQPEYZAos1C7Jv9APGj4OCSyMssw0sRWmtDcXz335NPlcX2t6nC@AZOnyZgxTI6k/TFVuV2G17gy3THiK15KZtO3p3YW02HthH4eFSXDsjNR70gRnf1ltLLM2n20DRRAeuwKP9XGnWdFsN2bIkuEFrpsDrL7OpRVbbZwP5HZ24s1JxAvZxVKmWLBRMeHbS9DrD2DknY64dnV1Af1vvwE "PHP – Try It Online" **51 bytes** Iterative 2: <!-- language-all: lang-php --> while($i<strlen($argn))$x+=ord($argn[$i++]);echo$x; [Try it online!][TIO-jx4u3su8] [PHP]: https://php.net/ [TIO-jx4u3su8]: https://tio.run/##fYtrT4JQAED/yiUvbxOrjURAUqDmXLomSxs@MLoIA3ndq6Cbv51Wfe/j2TknD/NGM/IwB3BX7lOgg2CPCObmjjWe8iqQJICjwzHZEQR@qttnEKX5kTRVGCWIg5GGSZmglPvdeR7Wop6VX3/owkgU17yK/DCDtdo0hUT3wjQfOPTZYKvp5@raVuJyARhLYdcTmKpJ52EmEluAQmc72mDqKV4xZtK3Z3eXrIffa/s0qs3Mj7dj8T6TwRkthe6y6JP5JuAp6lGnSKxMNLkl2V6MOYuFF7iSh7746jAudtfbD87T9vRNRfsL1vOZgrdgt2XCt5dgYAxhtKtOfvvqKRT3v/0G "PHP – Try It Online" **63 bytes** Recursive: <!-- language-all: lang-php --> function f($s,$c=0){return$s?f(substr($s,1),ord($s[0])+$c):$c;} [Try it online!][TIO-jx4tvlkj] [PHP]: https://php.net/ [TIO-jx4tvlkj]: https://tio.run/##fY3ZboJAAEV/ZajDMkIF28SKqFSFNsZU00iqjRs6BSHYAZnBreHbqSZ97ttJzrm5SZAUTTMJEgDX6ZaAFvC3HqPS2LH6Q2QAVQU0/M52a@aBW3X/AkKSZKzwM4JZGBPgS5AqELc09JN6LEsJpKYv0WxDWXpTVaTE6deVZtoCyRCjBsRGXng4iK/bv1tkFHuVrwckaTv82RSPw808V/QonQDB0sXFABJjV3kcycwuw3Jl1V1S7jmaC71dwx5VL3GdfpzsQ/fUi3G06ssPcQ2cvWlZm@4bbLz0Ecc9tTgW6YNmraTabkQlS4QXOK91sPzmCDM6W6w@Jbe55e@OPJ6ILhb2yIJaqQffX/222YHh@njASu7qnPS//QU "PHP – Try It Online" **69 bytes** Using PHP's rarely used <sub>[\[citation needed\]][1]</sub> `array_reduce()` function: <!-- language-all: lang-php --> <?=array_reduce(str_split($argn),function($c,$i){return$c+ord($i);}); [Try it online!][TIO-jx4ttmy5] [PHP]: https://php.net/ [TIO-jx4ttmy5]: https://tio.run/##fYzrUoJAAEZfZckFFiGxmjERlVSocZx0Gp208QK0gjDQgruLt8ZnN@sB@vudc748yi9NK49yAH26IaAFwk3AGRpP7P5QMYGuAxZ/FanPA/Br3T6DmOQFB1b72rV8Sv2jS4N1gQPEOHVZnsYc/X0pWlgQzOOMIIg1GCvfNOAFJRCrGV2j62CeFfNy2epiPSJ5eyIeLXk//FycNSOhUyDZhrwcQGKmlYeRyp0yLFfc7ooJT8lC6qUNZ3R3yurs/eDsuodehhO3r95nNXAMZuXqbNvg41WoCMJjS@CJMWjWSrrjJQzZMjzBRa2D1deJNGfzpfuBvOZGvNmLeCp7WNoqNqyWevDtJWxbHRj7@x3Wzp4hoP/pDw "PHP – Try It Online" [1]: http://#