DateTime – Reset all of the remaining time units
![](https://kennethferguson.com/wp-content/uploads/2023/03/datetime-reset-units.png)
You can insert an exclamation into the DateTime::createFromFormat method to reset all of the remaining time units
Shorthand for Position Distances
![](https://kennethferguson.com/wp-content/uploads/2022/01/position_shorthand-1024x448.png)
This: Can be shortened to this:
Add Vertical Text
![](https://kennethferguson.com/wp-content/uploads/2021/12/img_1166-1024x576.jpg)
You can easily change the vertical alignment of the text using writing-mode CSS property. It’s supported in all modern browsers. https://twitter.com/vponamariov/status/1471748945286250500?s=21
Reduce Font File Size for Html
![](https://kennethferguson.com/wp-content/uploads/2021/12/reduce_font_file_size-1024x238.png)
You can specify a `text=` value in your font request URL to reduce the size of the font file by up to 90%. Source: https://twitter.com/denicmarko/status/1361656749686726659
Remove Duplicates from an Array
![](https://kennethferguson.com/wp-content/uploads/2021/12/removing_duplicates_in_array_using_set_1-1024x360.png)
Using Set to get unique elements: Shortened version: