Answer the question
In order to leave comments, you need to log in
For general development: applying methods to properties?
As a student, I was fond of writing all sorts of small softins on Borland C++ 6 versions. Here, there was such an interesting style, something like: myObject->caption.length();
What determined the length of the text of the caption element. Here. Whether it is possible to implement similar in pyhype? For example:
// Определение длины заголовка:
$myObject->title->length();
//или приведение к определенному типу:
$myObject->comments_num->int();
Answer the question
In order to leave comments, you need to log in
no, and it's best not to.
mb_strlen($myObject->title);
(int) $myObject->commensNum;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question