• #dev 2020-07-28
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2020-07-28 UTC
# 20:06
Zegnat
You could always cheat a little, use strpos() to find the to get the location of both alt= and width=. Then use min() to get the one that occurs first, and feed that right into your substr().