the web dev
just another blog about software development for the web
  • about me
Currently viewing the tag: "function"

advanced sprintf() for PHP

By Dominik Liebler On October 12, 2011 · 3 Comments

Have you ever had the need to use sprintf in a loop and replace the placeholders sequentially loop cycle by loop cycle? I recently had but there is a big problem in this use case: sprintf() (or the printf() family in general) can’t do this. PHP will raise a warning “Too few arguments” when there’s [...]

Continue Reading →
  • recent posts

    • The Erlang stack
    • Why don’t you put your dotfiles on Github?
    • Erlang Concurrent Program Template
    • JS assessment: improve your JavaScript knowledge test-driven
    • Think of APIs as Domain-specific languages (DSL)
  • RSS my posts in Mayflower’s blog

    • Consistent Hashing – intelligentes Sharding
    • DomniklStatsdBundle: Monitoring mit statsd in Symfony2-Projekten
    • Message Queues for web applications with STOMP
    • Grunt – a JavaScript build tool
    • 15.12. Using custom annotations in PHP
  • tags

    agile algorithms blog books C codingstyle couchdb daemon databases datastructures erlang fun function functional programming gem getting started gist git github javascript jruby learning linux mayflower mysql open source performance php postgresql pragmatic programmers programming redis ruby rvm shell sinatra slides snippets sprintf subversion syntax highlighting textmate theory unix zsh
  • My Coderwall Badges

    Forked 100Lemmings 100Forked 50Forked 20BeaverNephila KomaciNephila Komaci 3VelociraptorOctopussyWalrusForkedCharityMongoose 3MongooseDesert Locust
"Unknown Twitter error." — domnikl

the web dev

Pages

  • about me

The Latest

  • The Erlang stack
    I am learning Erlang for a little to a year now, not […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2013 Dominik Liebler
Platform by PageLines