li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.1.x)
  • lithium
  • g11n
  • multibyte
  • adapter
  • Mbstring
  • substr()

Contents

  • ../

lithium\g11n\multibyte\adapter\Mbstring::substr()

public method

Here used as a multibyte enabled equivalent of substr().

Parameters

  • string $string
  • integer $start
  • integer $length

Returns

string|boolean

Links

  • http://php.net/function.mb-substr.php

Source

	public function substr($string, $start, $length) {
		return mb_substr($string, $start, $length, 'UTF-8');
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

Not sure what those other
guys were talking about but –
hey can you guys be quiet?
I have the microphone. It's my
turn to talk. What? No, you can
grab a snack after I am done…

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.