li3

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

Contents

  • ../

lithium\g11n\multibyte\adapter\Intl::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.grapheme-substr.php

Source

	public function substr($string, $start, $length) {
		return grapheme_substr($string, $start, $length);
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

– no comment –

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